コード例 #1
0
ファイル: Garage.cs プロジェクト: eltehass/C_SHARP_LABS
 /**
  * Creating an exact copy of this object
  * taking into account the reference attributes
  **/
 public object DeepCopy()
 {
     return(new Garage((WrapperList)garageVehicles.DeepCopy()));
 }
コード例 #2
0
ファイル: Garage.cs プロジェクト: eltehass/C_SHARP_LABS
 public Garage(WrapperList list)
 {
     garageVehicles = (WrapperList)list.DeepCopy();
 }