コード例 #1
0
        static void Main(string[] args)
        {
            TestInterface te = new TestInterface();

            te.Test();

            IInterface1 i1 = te;

            i1.Show();

            IInterface2 i2 = te;

            i2.Show();

            Console.ReadLine();
        }