Пример #1
0
 public TestInheritence9(bool init)
 {
     derivedDC = new DerivedSerializable(true);
     baseDC    = derivedDC;
     base1     = new Derived2Serializable(true);
     derived2  = (Derived2Serializable)base1;
 }
Пример #2
0
 public TestInheritence91(bool init)
 {
     derivedDC = new DerivedSerializable(true);
     baseDC    = derivedDC;
     base1     = new Derived2Serializable(true);
     derived3  = new Derived3Derived2Serializable(true);
     derived2  = derived3;
 }
Пример #3
0
 public TestInheritence8(bool init)
 {
     derived2DC       = new Derived2DC(true);
     baseDC           = new BaseDC(true);
     baseDC.data      = derived2DC.data;
     derived2DC.Data  = "String1";
     baseDC.Data      = derived2DC.Data;
     baseDC.data      = derived2DC.data1;
     derived2DC.Data1 = "String2";
     baseDC.Data      = derived2DC.Data1;
 }
Пример #4
0
 public TestInheritence7(bool init)
 {
     baseDC          = new BaseDC(true);
     derived2DC      = new Derived2DC(true);
     derived2DC.data = baseDC.data;
     baseDC.Data     = "String1";
     derived2DC.Data = baseDC.Data;
     derived2DC.data = baseDC.data2;
     baseDC.Data2    = "String2";
     derived2DC.Data = baseDC.Data2;
 }
Пример #5
0
 public TestInheritence8(bool init)
 {
     derived2DC       = new Derived2DC(true);
     baseDC           = new BaseDC(true);
     baseDC.data      = derived2DC.data;
     derived2DC.Data  = new DateTime().ToLongTimeString();
     baseDC.Data      = derived2DC.Data;
     baseDC.data      = derived2DC.data1;
     derived2DC.Data1 = new DateTime().ToLongTimeString();
     baseDC.Data      = derived2DC.Data1;
 }
Пример #6
0
 public TestInheritence7(bool init)
 {
     baseDC          = new BaseDC(true);
     derived2DC      = new Derived2DC(true);
     derived2DC.data = baseDC.data;
     baseDC.Data     = new DateTime().ToLongTimeString();
     derived2DC.Data = baseDC.Data;
     derived2DC.data = baseDC.data2;
     baseDC.Data2    = new DateTime().ToLongTimeString();
     derived2DC.Data = baseDC.Data2;
 }
Пример #7
0
 public TestInheritence4(bool init)
 {
     derivedDC                 = new DerivedDC(true);
     baseDC                    = new BaseDC(true);
     derivedDC.Data            = "String1";
     ((BaseDC)derivedDC).Data  = derivedDC.Data;
     ((BaseDC)derivedDC).data  = derivedDC.data1;
     derivedDC.Data1           = "String2";
     ((BaseDC)derivedDC).Data  = derivedDC.Data1;
     ((BaseDC)derivedDC).data  = ((BaseDC)derivedDC).data2;
     ((BaseDC)derivedDC).Data2 = "String3";
     ((BaseDC)derivedDC).Data  = ((BaseDC)derivedDC).Data2;
 }
Пример #8
0
 public TestInheritence4(bool init)
 {
     derivedDC                 = new DerivedDC(true);
     baseDC                    = new BaseDC(true);
     derivedDC.Data            = new DateTime().ToLongTimeString();
     ((BaseDC)derivedDC).Data  = derivedDC.Data;
     ((BaseDC)derivedDC).data  = derivedDC.data1;
     derivedDC.Data1           = new DateTime().ToLongTimeString();
     ((BaseDC)derivedDC).Data  = derivedDC.Data1;
     ((BaseDC)derivedDC).data  = ((BaseDC)derivedDC).data2;
     ((BaseDC)derivedDC).Data2 = new DateTime().ToLongTimeString();
     ((BaseDC)derivedDC).Data  = ((BaseDC)derivedDC).Data2;
 }
Пример #9
0
 public TestInheritence3(bool init)
 {
     derivedDC       = new DerivedDC(true);
     baseDC          = new BaseDC(true);
     derivedDC.data  = baseDC.data;
     baseDC.Data     = "String1";
     derivedDC.Data  = baseDC.Data;
     derivedDC.data  = baseDC.data2;
     baseDC.Data2    = "String2";
     baseDC.Data2    = baseDC.Data2;
     derivedDC.data  = derivedDC.data1;
     derivedDC.Data1 = "String3";
     derivedDC.Data  = derivedDC.Data1;
 }
Пример #10
0
 public TestInheritence6(bool init)
 {
     baseDC           = new BaseDC(true);
     derivedDC        = new DerivedDC(true);
     derived2DC       = new Derived2DC(true);
     derived2DC.data  = derivedDC.data;
     derivedDC.Data   = "String1";
     derived2DC.Data  = derivedDC.Data;
     derived2DC.data  = derivedDC.data3;
     derivedDC.Data3  = "String2";
     derived2DC.Data  = derivedDC.Data3;
     derived2DC.data4 = derivedDC.data1;
     derivedDC.Data1  = "String3";
     derived2DC.Data4 = derivedDC.Data1;
     derived2DC.data1 = derived2DC.data2;
     derived2DC.Data2 = "String4";
     derived2DC.Data1 = derived2DC.Data2;
 }
Пример #11
0
 public TestInheritence6(bool init)
 {
     baseDC           = new BaseDC(true);
     derivedDC        = new DerivedDC(true);
     derived2DC       = new Derived2DC(true);
     derived2DC.data  = derivedDC.data;
     derivedDC.Data   = new DateTime().ToLongTimeString();
     derived2DC.Data  = derivedDC.Data;
     derived2DC.data  = derivedDC.data3;
     derivedDC.Data3  = new DateTime().ToLongTimeString();
     derived2DC.Data  = derivedDC.Data3;
     derived2DC.data4 = derivedDC.data1;
     derivedDC.Data1  = new DateTime().ToLongTimeString();
     derived2DC.Data4 = derivedDC.Data1;
     derived2DC.data1 = derived2DC.data2;
     derived2DC.Data2 = new DateTime().ToLongTimeString();
     derived2DC.Data1 = derived2DC.Data2;
 }
Пример #12
0
 public TestInheritence5(bool init)
 {
     baseDC = derivedDC;
 }