static void Main(string[] args) { #region Outer Class Console.WriteLine("----------------- Outer Class -----------------"); OuterClass myOut = new OuterClass("MyOut"); myOut.OuterMethod(); //myOut.InnerMethod(); OuterClass.InnerClass myInner = new OuterClass.InnerClass("MyInner"); myInner.InnerMethod(); myInner.OuterClassMembers(); ExternalClass myExternal = new ExternalClass("MyExternal"); myExternal.OuterMethod(); //ExternalClass2 myExternal2 = new ExternalClass2("MyExternal2"); //myExternal2.InnerMethod(); #endregion Console.ReadLine(); }
static void Main(string[] args) { var outs = new OuterClass(); // Calling the outer constructor OuterClass.InSideClass ins = new OuterClass.InSideClass(); // Calling the inner constructor }