.net - Should I provide a deep clone when implementing ICloneable? -


it unclear me msdn documentation if should provide deep or shallow clone when implementing icloneable. preferred option?

short answer: yes.

long answer: don't use icloneable. because .clone isn't defined being shallow or deep clone. should implement own iclone interface, , describe how clone should work.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -