public static int MainMethod() { Test t = new Test(); dynamic mc = new MemberClass(); int result = t.Method((int)mc.M <InnerTest>(new InnerTest())); return(result == 3 ? 0 : 1); }