Exemplo n.º 1
0
        private static ObjectsMutualRefs1 GenObjectsMutualRefs()
        {
            var v1 = new ObjectsMutualRefs1();
            var v2 = new ObjectsMutualRefs2();

            v1.self = v2.other = v1;
            v2.self = v1.other = v2;
            return(v1);
        }
Exemplo n.º 2
0
 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);
 }