How to clone one object?
Posted: Wed 30 Jan 2013 09:51
I have for example an Entity object CAR.
The key is CAR.PlateNumber
Now I want clone this object and all attributes, except the PlateNumber.
But I don't like to assign all attributes separately. Like
NewCar.color = oldCar.color, .....
Is there a Clone function available?
The key is CAR.PlateNumber
Now I want clone this object and all attributes, except the PlateNumber.
But I don't like to assign all attributes separately. Like
NewCar.color = oldCar.color, .....
Is there a Clone function available?