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