public static void Main(string[] args)
        {
            IIntf1 intf  = new Impl();
            IIntf2 intf2 = intf as IIntf2;

            if (intf2 != null)
            {
                string str = intf2.GetType(0);
            }
        }
Exemplo n.º 2
0
 static void TestIntf2(IIntf2 o, int expected) => AssertEqual(expected, o.GetValue());