<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>closure的自调用函数式写法</title> <script type="text/javascript"> var a = (function(name){ var n = name; …
通过序列化的方式实现深拷贝 [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…