class MainClass
{
public A APro { get; set; }
public B BPro { get; set; }
}
class A
{
public int ProA { get; set; }
}
class B
{
public int ProB { get; set; }
}
Above shown is my structure (I have not mentioned the Access specifiers) My question is how to use class A and class B statically by using MainClass only which is also required to be a static class. Other than by any ways developer shouldn't use class A and class B. He/she must use MainClass to access class A and class B.