src/Mimp.SeeSharper.Reflection/ConstructorInfoExtensions.cs
/// <summary>
/// Return a compiled function to invoke the constructor with a array of the parameters.
/// </summary>
/// <param name="constructor"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
Return a compiled function to invoke the constructor with a array of the parameters.
Return a compiled function to invoke the constructor with a array of the parameters .
public static ParamsFunc GetParamsFunc(this ConstructorInfo constructor)
        {
            if (constructor is null)
                throw new ArgumentNullException(nameof(constructor));
            return constructor.GetParameterDelegate<ParamsFunc>();
        }
public static ParamsFunc GetParamsFunc ( this ConstructorInfo constructor ) { if ( constructor is null ) throw new ArgumentNullException ( nameof ( constructor ) ) ; return constructor . GetParameterDelegate < ParamsFunc > ( ) ; }
Return a compiled function to invoke the constructor with a array of the parameters.
Return a compiled function to invoke the constructor with a array of the parameters .
None
None
ConstructorInfo
this
constructor
None