예제 #1
0
        public static void Main()
        {
            ISampleClass sc1 = new SampleClass();
            sc1.SomeOldMethod();

            ISampleClass sc2 = new SampleClass2();
            sc2.SomeOldMethod();

            ISampleClass sc3 = new SampleClass3();
            sc3.SomeOldMethod();

            SampleClass sc = new SampleClass();
            sc.SomeOldMethod();
        }
예제 #2
0
        public static void Main()
        {
            ISampleClass sc1 = new SampleClass();

            sc1.SomeOldMethod();

            ISampleClass sc2 = new SampleClass2();

            sc2.SomeOldMethod();

            ISampleClass sc3 = new SampleClass3();

            sc3.SomeOldMethod();



            SampleClass sc = new SampleClass();

            sc.SomeOldMethod();
        }