src/Mimp.SeeSharper.Reflection/MethodInfoExtensions.cs
/// <summary>
/// Returns <see cref="InstanceAction"/> if the <paramref name="method"/> is a action 
/// otherwise it will return a <see cref="InstanceFunc"/>.
/// </summary>
/// <param name="method"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
Returns  if the  is a action
otherwise it will return a .
Returns if the is a action otherwise it will return a .
public static Delegate GetInstanceParamsDelegate(this MethodInfo method)
        {
            if (method is null)
                throw new ArgumentNullException(nameof(method));
            return method.GetInstanceParameterDelegate(method.IsAction() ? typeof(InstanceAction) : typeof(InstanceFunc));
        }
public static Delegate GetInstanceParamsDelegate ( this MethodInfo method ) { if ( method is null ) throw new ArgumentNullException ( nameof ( method ) ) ; return method . GetInstanceParameterDelegate ( method . IsAction ( ) ? typeof ( InstanceAction ) : typeof ( InstanceFunc ) ) ; }
Returns  if the  is a action
otherwise it will return a .
Returns if the is a action otherwise it will return a .
None
None
MethodInfo
this
method
None