2013年4月3日
摘要: public AtmDataBase DeepClone() { MemoryStream ms = new MemoryStream(); BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(ms, this); ms.Position = 0; return bf.Deserialize(ms) as AtmDataBase; }C# 支持两种类型:“值类型”和“引用类型”。值类型(Value Type)(如 char、int 和 float)、枚举类型和结构类型。 引用类型(Reference Type) 包括类 (... 阅读全文
posted @ 2013-04-03 17:27 aparche 阅读(2360) 评论(0) 推荐(0)