public static bool testMethod() { StructsTestClass_32_Struct s = new StructsTestClass_32_Struct(); StructsTestClass_32_Struct.Nested nn = new StructsTestClass_32_Struct.Nested(); nn.i = 10; s.n = nn; //value copy if (s.n.i == nn.i) { return(true); } else { return(false); } }
public static bool testMethod() { StructsTestClass_32_Struct s = new StructsTestClass_32_Struct(); StructsTestClass_32_Struct.Nested nn = new StructsTestClass_32_Struct.Nested(); nn.i = 10; s.n = nn; //value copy if(s.n.i == nn.i) return true; else return false; }