示例#1
0
        public ContainsLinkedList(bool init)
        {
            this.Data = new LinkedList <SimpleDCWithRef>();
            SimpleDCWithRef d1 = new SimpleDCWithRef(true);
            SimpleDCWithRef d2 = new SimpleDCWithRef(true);

            d2.Data.Data = d1.RefData.Data;
            Data.AddLast(d1);
            Data.AddLast(d2);
            Data.AddLast(d2);
            Data.AddLast(d1);
            SimpleDCWithRef d3 = new SimpleDCWithRef(true);
            SimpleDCWithRef d4 = new SimpleDCWithRef(true);

            d4.Data = d3.RefData;
            Data.AddLast(d4);
            Data.AddLast(d3);
            SimpleDCWithRef d5 = new SimpleDCWithRef(true);
            SimpleDCWithRef d6 = new SimpleDCWithRef(true);
            SimpleDCWithRef d7 = new SimpleDCWithRef(true);

            d6.Data    = d5.Data;
            d7.Data    = d5.RefData;
            d7.RefData = d6.RefData;
            Data.AddLast(d7);
        }
 public Mixed1(bool init)
 {
     Data1 = new SimpleDC(true);
     Data2 = new SimpleDCWithRef(true);
     Data3 = new SimpleDCWithSimpleDMRef(true);
     Data4 = new SimpleStructDC(true);
     Data5 = new SimpleStructDCWithRef(true);
 }
示例#3
0
        public DMWithRefInDict1(bool init)
        {
            Dict1           = new Dictionary <SimpleDCWithRef, SimpleDCWithRef>();
            Data1           = new SimpleDCWithRef(true);
            Data2           = new SimpleDCWithRef(true);
            InnerInnerData1 = new Guid("6d807157-536f-4794-a157-e463a11029aa").ToString();
            InnerData1      = Data1.Data;

            SimpleDCWithRef t1 = new SimpleDCWithRef(true);
            SimpleDCWithRef t2 = new SimpleDCWithRef(true);

            t2.Data.Data = InnerInnerData1;
            Dict1.Add(t1, t2);
            Dict1.Add(Data1, Data2);
            Dict1.Add(new SimpleDCWithRef(true), t2);
            Dict1.Add(t2, new SimpleDCWithRef(true));
            Dict2 = Dict1;
            foreach (KeyValuePair <SimpleDCWithRef, SimpleDCWithRef> kvp in Dict1)
            {
                Kvp1 = kvp;
            }
        }
 public ContainsSimpleDCWithRef(bool init)
 {
     Data    = new SimpleDCWithRef(true);
     RefData = Data;
 }
示例#5
0
 public Derived6Derived2SerializablePOCO(bool init)
     : base(init)
 {
     SimpleDCWithRefData = new SimpleDCWithRef(true);
     RefData             = SimpleDCWithRefData;
 }
示例#6
0
 public DerivedPOCOBaseDCISRef(bool init)
     : base(init)
 {
     SimpleDCWithRefData = new SimpleDCWithRef(true);
     RefData             = SimpleDCWithRefData;
 }