I was wondering if anyone knew why a public enum does not show up to use after creating an instance of the class that it resides in?
For example:
In ClassWithEnum:
public enum Values
{
value1 = 0,
value2 = 1
}
Then, create an instance of the class:
ClassWithEnum myClassInstance = new ClassWithEnum;
When I look at what is available to use in the Class, the enums don't show up. I only see methods and public variables such as strings, etc.
I would like to use: myClassInstance.Values.value1
- but it isn't available.