public static void MapFrom(this IExecutionTrace target, IExecutionTrace source) { if (source != null) { if (target != null) { target.Module = source.Module; target.ClassName = source.ClassName; target.MethodName = source.MethodName; target.Tag = source.Tag; target.MinDuration = source.MinDuration; target.MaxDuration = source.MaxDuration; target.TotalDuration = source.TotalDuration; target.Counter = source.Counter; target.LastCall = source.LastCall; } } }
public static void MapTo(this IExecutionTrace source, IExecutionTrace target) { target.MapFrom(source); }