public static void Case0() { { Itf1 i1 = new C1(); i1.Fun(); (i1 as Itf2)?.Fun(); } { Itf1 i1 = new C12(); i1.Fun(); (i1 as Itf2)?.Fun(); } }
public static void Case1() { { Itf1 i1 = new C1(); i1.CallMe(); (i1 as Itf2)?.CallMe(); } { Itf1 i1 = new C12(); i1.CallMe(); (i1 as Itf2)?.CallMe(); } }