Exemplo n.º 1
0
        static void Main(string[] args)
        {
            MyClass my = new MyClass();

            my.M();

            IInterface1 i1 = my;

            i1.M();

            IInterface2 i2 = my;

            i2.M();
        }