コード例 #1
0
ファイル: InterfaceTest.cs プロジェクト: Tob1112/seungbeomi
        public static void Main(string[] args)
        {
            InterfaceTest it = new InterfaceTest();
             it.IMethod();

             IMyInterface imc = it;
             imc.IMethod();
        }
コード例 #2
0
ファイル: InterfaceTest.cs プロジェクト: Tob1112/seungbeomi
        public static void Main(string[] args)
        {
            InterfaceTest it = new InterfaceTest();

            it.IMethod();

            IMyInterface imc = it;

            imc.IMethod();
        }