Пример #1
0
        static void Main()
        {
            MyClass.Nested instance = new MyClass.Nested();

            instance.Method(1);

            // Delay.
            Console.ReadKey();
        }
Пример #2
0
        static void Main()
        {
            MyClass.Nested instance = new MyClass.Nested();

            instance.Method();

            // Delay.
            Console.ReadKey();
        }
Пример #3
0
        static void Main()
        {
            MyClass instance1 = new MyClass();
            instance1.MethodFromBase();

            MyClass.Nested instance2 = new MyClass.Nested();
            instance2.MethodFromNested();

            // Delay.
            Console.ReadKey();
        }
Пример #4
0
        static void Main()
        {
            MyClass instance1 = new MyClass();

            instance1.MethodFromBase();

            MyClass.Nested instance2 = new MyClass.Nested();
            instance2.MethodFromNested();

            // Delay.
            Console.ReadKey();
        }
Пример #5
0
        static void Main()
        {
            MyClass.Nested instance = new MyClass.Nested();
            instance.MethodFromNested();

            Console.WriteLine(new string('-', 30));

            MyClass.StaticMethod();

            // Delay.
            Console.ReadKey();
        }
Пример #6
0
        static void Main()
        {
            MyClass.Nested instance = new MyClass.Nested();
            instance.MethodFromNested();

            Console.WriteLine(new string('-', 30));

            MyClass.StaticMethod();

            // Delay.
            Console.ReadKey();
        }