一.概念 <Design Patterns: Elements of Reusable Object-Oriented Software>(即后述<设计模式>一书),由 Erich Gamma.Richard Helm.Ralph Johnson 和 John Vlissides 合著(Addison-Wesley,1995).这几位作者常被称为"四人组(Group of Four)". 创建型模式(5个):单例模式.工厂模式.抽象工厂模式.建造者模式.原型模式
通过序列化的方式实现深拷贝 [Serializable] public class Person:ICloneable { public string Name { get; set; } public int Age { get; set; } public List<Friend> FriendList { get; set; } public object Clone() { MemoryStream memoryStream = new MemoryStream(); BinaryFo