2016年12月26日

最高效率的对象深拷贝通用方法

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Text; namespace Care.Common { public static class ObjectCo... 阅读全文

posted @ 2016-12-26 15:32 strangeman 阅读(1353) 评论(0) 推荐(0)

C#四种深拷贝方法

摘要: //四种深拷贝方法 public static T DeepCopyByReflect(T obj) { //如果是字符串或值类型则直接返回 if (obj is string || obj.GetType().IsValueType) return obj; object retv... 阅读全文

posted @ 2016-12-26 15:31 strangeman 阅读(18190) 评论(0) 推荐(3)

导航