Asked • 07/24/19

Why is cloning (in .NET) so difficult?

In the past I had the need to clone objects, only to find that they don't implement a <code>Clone()</code> method, forcing me to do it by hand (create a new instance and copy all properties from the original to the new one). Why isn't cloning as easy as duplicating the memory block the object is allocated in, and thus have the `Clone` method in the <code>object</code> class, having all classes in .NET inherit it?

1 Expert Answer


Jonathan C. answered • 08/16/19

Game-Programming Computer Tutor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.