src/Mimp.SeeSharper.Reflection/MethodInfoExtensions.cs
/// <summary>
/// Return a action to invoke the method with the instance and a array of parameters.
/// </summary>
/// <param name="method"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
/// <exception cref="InvalidOperationException">If the method isn't action.</exception>
Return a action to invoke the method with the instance and a array of parameters.
Return a action to invoke the method with the instance and a array of parameters .
public static InstanceAction GetInstanceParamsAction(this MethodInfo method)
        {
            if (method is null)
                throw new ArgumentNullException(nameof(method));
            return method.GetInstanceParameterDelegate<InstanceAction>();
        }
public static InstanceAction GetInstanceParamsAction ( this MethodInfo method ) { if ( method is null ) throw new ArgumentNullException ( nameof ( method ) ) ; return method . GetInstanceParameterDelegate < InstanceAction > ( ) ; }
Return a action to invoke the method with the instance and a array of parameters.
Return a action to invoke the method with the instance and a array of parameters .
None
None
If the method isn't action.
If the method isn ' t action .
MethodInfo
this
method
None