static void Main() { MyClass.Nested instance = new MyClass.Nested(); instance.Method(1); // Delay. Console.ReadKey(); }
static void Main() { MyClass.Nested instance = new MyClass.Nested(); instance.Method(); // Delay. Console.ReadKey(); }
static void Main() { MyClass instance1 = new MyClass(); instance1.MethodFromBase(); MyClass.Nested instance2 = new MyClass.Nested(); instance2.MethodFromNested(); // Delay. Console.ReadKey(); }
static void Main() { MyClass.Nested instance = new MyClass.Nested(); instance.MethodFromNested(); Console.WriteLine(new string('-', 30)); MyClass.StaticMethod(); // Delay. Console.ReadKey(); }