public static void Do() { Test test = new Test(); test.Foo(); ITest1 test1 = test; test1.Foo(); (test as ITest2).Foo(); }