Can you explain to me why I should inherit from ICloneable
and implement the Clone()
method?
If I want to do a deep copy, can't I just implement my method? Let's say MyClone()
?
Why should I inherit from ICloneable
? What are the advantages? Is it just a matter of making code "more readable"?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…