Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8959763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:31:00+00:00 2026-06-15T15:31:00+00:00

Possible Duplicate: How can I make an abstract enum in a .NET class library?

  • 0

Possible Duplicate:
How can I make an “abstract” enum in a .NET class library?

So, here is my project.

I have a network framework that has a enum called command. This basically tells the system if the packet that just came in is a CONNECT, CHAT, JOIN, etc. As a future step, I want to allow plugins to use this ‘framework’ which could provide additional command types. I know you can’t add values to existing enum’s in the subsequent plugins, so what would be the proper way to do what I want to do above? A Class? just an integer field for command, and a series of const int’s like CONNECT = 1, JOIN = 2, etc?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:31:01+00:00Added an answer on June 15, 2026 at 3:31 pm

    You should probably have one of your main message types as plugin, so that you can delegate handling the message to the plugin itself, rather than trying to deal with these currently-unknown packets yourself. Additionally, each plugin message should include an identifier that specifies which plugin should handle it.

    In general, you to make the plugin system as modular as possible, so you don’t have to worry about how it will interfere with your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How can I make XSLT work in chrome? I have this XML
Possible Duplicate: How can I make a horizontal ListView in Android? I have used
Possible Duplicate: Android Left to Right slide animation Can i make the screen that
Possible Duplicate: How can I make Turtle recognize a circle? I have a function
Possible Duplicate: Creating an abstract class in Objective C I'd like to make abstract
Possible Duplicate: How can JavaScript make new page that contains more JavaScript? I tried
Possible Duplicate: How can I make an EXE file from a Python program? i
Possible Duplicate: Sleep Less Than One Millisecond How can I make a program sleep
Possible Duplicate: Can I scroll a ScrollView programmatically in Android? I have a chat
Possible Duplicate: Can Read-Only Properties be Implemented in Pure JavaScript? I have an Object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.