public static bool testMethod() { StructsTestClass_38_A a = new StructsTestClass_38_A(); object o = a; //boxing bool b = o is StructsTestClass_38_Interface; if (!b) { return(false); } if ((a as StructsTestClass_38_Interface) == null) { return(false); } if (a.GetI().foo() != 10) { return(false); } else { return(true); } }
public static bool testMethod() { StructsTestClass_38_A a = new StructsTestClass_38_A (); object o = a; //boxing bool b = o is StructsTestClass_38_Interface ; if(!b) return false; if((a as StructsTestClass_38_Interface ) == null) return false; if(a.GetI().foo() != 10) return false; else return true; }