I have following class structure
public class MainClass
{
private static class Class1
{
private static class Class2
{
public const int Id = 2;
}
}
public void getId()
{
// I want to access Id here
}
}
Now I want to access the variable Id which is inside Class2
I tried like Class1.Class2.Id;
But it is not working
What I am doing wrong?