Possible Duplicate:
Getting Enum value via reflection
With mytype.ReflectedType.GetFields() I can get the constants defined in a c# class.
how can I get with mytype.ReflectedType.XXX a certain enum I have defined inside the c# class during runtime?
The enum isn’t really a member of the class, it’s only declared in the scope of the class. You can use the
GetNestedTypemethod to get a type that is declared inside another. Example: