Hi..
Ques : Hello friend please Explain current thinking around IClonable in ASP.NET.
Explain current thinking around IClonable.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Feb 28, 2012, 2:03 PM EST
Shen Hengbin94 reputationPosted Feb 28, 2012, 4:15 PM EST
http://www.diranieh.com/NETCSharp/EffectiveCS.htm#27._Avoid_ICloneable
And also if you have used ICloneable in your base class which is not sealed , there is a bug with it.
Because it is not type safe , the sub class's default Clone() would return parent class not itself.