public static T ExpressionDeepCopyTo <T>(this T source) where T : class, new() { return(ExpressionCopy <T> .DeepCopyFrom(source)); }
public static void ExpressionCopyPropertyTo <TSource, TTarget>(this TSource source, TTarget target) where TSource : class, new() where TTarget : class, new() { ExpressionCopy <TSource, TTarget> .PropertyCopy(source, target); }
/// <summary> /// 深拷贝 /// </summary> /// <param name="source"></param> /// <returns></returns> public static T DeepCopyFrom(T source) { return(ExpressionCopy <T, T> .DeepCopyFrom(source)); }
public static TResult ExpressionDeepCopyTo <TSource, TResult>(this TSource source) where TSource : class, new() where TResult : class, new() { return(ExpressionCopy <TSource, TResult> .DeepCopyFrom(source)); }