Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define an enum within a method
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Define an enum within a method
Miscellaneous
Thread ID:
01072501
Message ID:
01072501
Views:
59
Can I define an enum within a method? (I don't think I can and I am not really sure I want to but I am still wondering)

Something like this:
private void myMethod()
{
  enum myEnum : byte
  {
    Zero = 0x00,
    One = 0x01
  }

  // Method code that is using the enum
}
Semper ubi sub ubi.
Next
Reply
Map
View

Click here to load this message in the networking platform