I have an enum _levels which is declared as private but it’s still accessible to other classes.
What I want is to access it by using a property.
Please consider my code below.
Thanks.
public sealed class TestClass
{
private static TestClass instance = new TestClass();
private enum _levels { A, B, C, D, E, F, G, H, ASE, SE, SSE, TL, AM };
public TestClass(){}
public static TestClass Instance
{
get { return instance; }
}
public _levels Levels
{
get { return _levels; }
}
}
I think this is what you are trying to do