Questions tagged «icloneable»


4
为什么要在C#中实现ICloneable?
您能向我解释为什么我应该继承ICloneable并实现该Clone()方法吗? 如果要进行深层复制,是否可以仅执行我的方法?比方说MyClone()? 我为什么要继承ICloneable?有什么优势?这仅仅是使代码“更具可读性”的问题吗?
110 c#  .net  cloneable  icloneable 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.