Mako/Util/Objects.cs
/// <summary>
///     Copy all the nonnull properties of <paramref name="@this" /> to the same properties of <paramref name="another" />
/// </summary>
/// <param name="this"></param>
/// <param name="another"></param>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
Copy all the nonnull properties of  to the same properties of
Copy all the nonnull properties of to the same properties of
public static T With<T>(this T @this, T another)
        {
            typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance)
                .ForEach(info => info.GetValue(@this)?.Let(o => info.SetValue(another, o)));
            return another;
        }
public static T With < T > ( this T @this , T another ) { typeof ( T ) . GetProperties ( BindingFlags . Public | BindingFlags . Instance ) . ForEach ( info => info . GetValue ( @this ) ? . Let ( o => info . SetValue ( another , o ) ) ) ; return another ; }
Copy all the nonnull properties of  to the same properties of
Copy all the nonnull properties of to the same properties of
None
T
this
another
T
None
this
None
typeparam
None