/** * Creating an exact copy of this object * taking into account the reference attributes **/ public object DeepCopy() { return(new Garage((WrapperList)garageVehicles.DeepCopy())); }
public Garage(WrapperList list) { garageVehicles = (WrapperList)list.DeepCopy(); }