private static ObjectsMutualRefs1 GenObjectsMutualRefs() { var v1 = new ObjectsMutualRefs1(); var v2 = new ObjectsMutualRefs2(); v1.self = v2.other = v1; v2.self = v1.other = v2; return(v1); }
private static bool CheckObjectsMutualRefs(ObjectsMutualRefs1 v) { return(v.self == v && v.other.other == v && v.other.self == v.other && v.other.self == v.other.other.other); }