コード例 #1
0
ファイル: A.cs プロジェクト: Zhenxiang-Gong/Simprotek
 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";
 }
コード例 #2
0
ファイル: F.cs プロジェクト: Zhenxiang-Gong/Simprotek
        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;
        }
コード例 #3
0
 public AA(BB bbRef) : base(bbRef)
 {
     this.classVersion = AA.CLASS_VERSION;
     this.MyBool       = false;
     this.b            = new B();
 }