예제 #1
0
        static void Main(string[] args)
        {
            MyClass myClass = new MyClass();

            myClass.DoSomething();
            myClass.DoElse();
            IMyInterface myInterface = myClass;

            myInterface.DoElse();//this must be called with interface
            myInterface.DoSomething();
            Console.ReadKey();
        }