public static bool testMethod() { ReferenceBoxingTestClass13_Struct MS = new ReferenceBoxingTestClass13_Struct(); MS.MyInt = 3; ReferenceBoxingTestClass13_Interface box = MS; MS.MyInt = 4; if (((ReferenceBoxingTestClass13_Struct)box).MyInt != 3) { return(false); } else { return(true); } }
public static bool testMethod() { ReferenceBoxingTestClass13_Struct MS = new ReferenceBoxingTestClass13_Struct(); MS.MyInt = 3; ReferenceBoxingTestClass13_Interface box = MS; MS.MyInt = 4; if (((ReferenceBoxingTestClass13_Struct)box).MyInt != 3) { return false; } else { return true; } }