Esempio n. 1
0
        static void Main(string[] args)
        {
            MyClass instance1 = new MyClass();

            instance1.MethodFromBase();

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

            // Delay
            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            MyClass instance = new MyClass();

            instance.MethodFromBase(); //из MyClass не видно методов Nested
            instance.MethodFromMyClass();

            MyClass.Nested instance2 = new MyClass.Nested();
            instance2.MethodFromNested();  //из Nested не видно методов MyClass
            //instance2.MethodFromMyClass

            //Delay
            Console.ReadKey();
        }