public A(BB bbRef) { this.classVersion = A.CLASS_VERSION; this.MyInt = 0; this.BBRef = bbRef; // the indirect containment is set manually if (bbRef != null) { bbRef.ARef = this; } this.MyStr = "zero"; }
public F() { this.classVersion = F.CLASS_VERSION; BB bbAA = new BB(); this.AARef = new AA(bbAA); this.AAARef = new AAA(); BB bbAAA = new BB(); this.AAARef.BBRef = bbAAA; }
public AA(BB bbRef) : base(bbRef) { this.classVersion = AA.CLASS_VERSION; this.MyBool = false; this.b = new B(); }