namespace WWPipeLine.Commons { /// /// 类的扩展属性 /// public static class PropertiesExtended { /// /// 实现类的深拷贝 /// /// /// /// #region public static T DataDeepClone(this object obj) where T : class { T result = (T)obj; string json = Commons.SerializeHelper.JsonHepler.Json_SerializeObject(obj, true); result = Commons.SerializeHelper.JsonHepler.Json_DeserializeObject(json); return result; } #endregion } }