2013年8月13日

Prototype:Copy和Clone

摘要: 原型模式在C#中的实现比较直接,因为只需要继承了IClone的接口,就可以通过重写Clone方法,调用MemberwiseClone()来实现ProtoType的方式。 class Test:ICloneable{ public string Context = string.Empty; public string Head = string.Empty; public o... 阅读全文

posted @ 2013-08-13 07:47 张叫兽的技术研究院 阅读(237) 评论(0) 推荐(0)

导航