src/Mimp.SeeSharper.Reflection/TypeExtensions.Default.cs
/// <summary>
/// Return a compiled delegate to get the default of <paramref name="type"/>.
/// </summary>
/// <param name="type"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
Return a compiled delegate to get the default of .
Return a compiled delegate to get the default of .
public static Delegate GetDefaultDelegate(this Type type)
        {
            if (type is null)
                throw new ArgumentNullException(nameof(type));
            return type.GetDefaultDelegate(Expression.GetFuncType(type));
        }
public static Delegate GetDefaultDelegate ( this Type type ) { if ( type is null ) throw new ArgumentNullException ( nameof ( type ) ) ; return type . GetDefaultDelegate ( Expression . GetFuncType ( type ) ) ; }
Return a compiled delegate to get the default of .
Return a compiled delegate to get the default of .
None
None
Type
this
type
None