예제 #1
0
 public void Func1()
 {
     Derived2 d = new Derived2();
     Derived2 d2 = d.Clone() as Derived2;
     if (d2 == null)
     {
         Console.WriteLine("null");
     }
 }
예제 #2
0
 public object Clone()
 {
     Derived2 rVal = new Derived2(this);
     return rVal;
 }
예제 #3
0
 private Derived2(Derived2 right)
     : base(right)
 {
     _dValues = right._dValues.Clone() as double[];
 }