public class A { public class B { } } public class MainClass { static void Main() { A.B b = new A.B(); } }