There can and will be objects without the implementation of clone, but you have to clone it, you may not have the rights to implement clone for that object, may be its a vendor object, then what you do.
You may try copying property by property, which is laborious.
Else you can try serialize and deserialize, serialize the object to an xml and then deserialize it into another object and its cloned!
No comments:
Post a Comment