public static bool TestValueTypeInstanceMethod() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return p.Check(1, 7, 21, 171); }
public static bool TestValueTypeParameter() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return ParameterOk(p); }
public static bool TestValueTypeVariable() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return(p.a == 1 && p.b == 7 & p.c == 21 && p.d == 171); }
private static valuetype GetValue() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return(p); }
public static bool TestValueTypeVirtualMethod() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return(p.ToString() == "202"); }
public static bool TestValueTypeInstanceMethod() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return(p.Check(1, 7, 21, 171)); }
public static bool TestValueTypeParameter() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return(ParameterOk(p)); }
public static bool TestValueTypePassByRef() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return(ByRefOk(ref p)); }
public static bool TestValueTypePassByRefModify() { valuetype p = new valuetype(); p.a = 3; p.b = 11; p.c = 41; p.d = 83; return(ByRefModify(ref p) && p.Check(1, 7, 21, 171)); }
public static bool TestValueTypeArray() { valuetype[] l = new valuetype[2]; valuetype p = new valuetype(); p.a = 3; p.b = 11; p.c = 41; p.d = 83; l[1] = p; return l[1].Check(3, 11, 41, 83); }
public static bool TestValueTypeInstanceField() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; wrapper obj = new wrapper(); obj.content = p; return obj.content.a == 1 && obj.content.b == 7 & obj.content.c == 21 && obj.content.d == 171; }
public static bool TestValueTypeStaticField() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; staticField = p; return(staticField.a == 1 && staticField.b == 7 & staticField.c == 21 && staticField.d == 171); }
public static bool TestValueTypeArrayByRef() { valuetype[] l = new valuetype[2]; valuetype p = new valuetype(); p.a = 3; p.b = 11; p.c = 41; p.d = 83; l[1] = p; return ByRefModify(ref l[1]) && l[1].Check(1, 7, 21, 171); }
public static bool TestValueTypeArrayByRef() { valuetype[] l = new valuetype[2]; valuetype p = new valuetype(); p.a = 3; p.b = 11; p.c = 41; p.d = 83; l[1] = p; return(ByRefModify(ref l[1]) && l[1].Check(1, 7, 21, 171)); }
public static bool TestValueTypeArray() { valuetype[] l = new valuetype[2]; valuetype p = new valuetype(); p.a = 3; p.b = 11; p.c = 41; p.d = 83; l[1] = p; return(l[1].Check(3, 11, 41, 83)); }
public static bool TestValueTypeInstanceField() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; wrapper obj = new wrapper(); obj.content = p; return(obj.content.a == 1 && obj.content.b == 7 & obj.content.c == 21 && obj.content.d == 171); }
public static bool TestNestedValueTypeField() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; valuewrapper val = new valuewrapper(); val.content = p; valuetype r = val.content; return(r.a == 1 && r.b == 7 & r.c == 21 && r.d == 171); }
private static bool ByRefModify(ref valuetype p) { bool result = p.Check(3, 11, 41, 83); p.a = 1; p.b = 7; p.c = 21; p.d = 171; result &= p.Check(1, 7, 21, 171); valuetype d = p; d.a = 0; d.b = 0; d.c = 0; d.d = 0; result &= p.Check(1, 7, 21, 171); return(result); }
public static bool TestValueTypeVariable() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return p.a == 1 && p.b == 7 & p.c == 21 && p.d == 171; }
private static bool ParameterOk(valuetype p) { return p.a == 1 && p.b == 7 & p.c == 21 && p.d == 171; }
private static bool ByRefOk(ref valuetype p) { return p.a == 1 && p.b == 7 & p.c == 21 && p.d == 171; }
private static bool ParameterOk(valuetype p) { return(p.a == 1 && p.b == 7 & p.c == 21 && p.d == 171); }
public static bool TestValueTypeVirtualMethod() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return p.ToString() == "202"; }
private static bool ByRefModify(ref valuetype p) { bool result = p.Check(3, 11, 41, 83); p.a = 1; p.b = 7; p.c = 21; p.d = 171; result &= p.Check(1, 7, 21, 171); valuetype d = p; d.a = 0; d.b = 0; d.c = 0; d.d = 0; result &= p.Check(1, 7, 21, 171); return result; }
public static bool TestValueTypePassByRefModify() { valuetype p = new valuetype(); p.a = 3; p.b = 11; p.c = 41; p.d = 83; return ByRefModify(ref p) && p.Check(1, 7, 21, 171); }
private static valuetype GetValue() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return p; }
public ValueNode(double value) { this.Value = value; Valuetype = 0; }
public static bool TestValueTypeReturnValue() { valuetype p = GetValue(); return(p.a == 1 && p.b == 7 & p.c == 21 && p.d == 171); }
.custom instance void [mscorlib]System.AttributeUsageAttribute::.ctor(valuetype [mscorlib]System.AttributeTargets) = (
private static bool BoxOk(object box) { valuetype p = (valuetype)box; return(p.a == 1 && p.b == 7 & p.c == 21 && p.d == 171); }
public static bool TestValueTypeStaticField() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; staticField = p; return staticField.a == 1 && staticField.b == 7 & staticField.c == 21 && staticField.d == 171; }
public static bool TestValueTypePassByRef() { valuetype p = new valuetype(); p.a = 1; p.b = 7; p.c = 21; p.d = 171; return ByRefOk(ref p); }
private static bool ByRefOk(ref valuetype p) { return(p.a == 1 && p.b == 7 & p.c == 21 && p.d == 171); }
.custom instance void [FSharp.Core] Microsoft.FSharp.Core.CompilationMappingAttribute::.ctor(valuetype [FSharp.Core] Microsoft.FSharp.Core.SourceConstructFlags) = (01 00 03 00 00 00 00 00)
op_Increment(valuetype Test.Months m) cil managed