src/Mimp.SeeSharper.Reflection/TypeExtensions.Delegate.cs
/// <summary>
/// Return the invoke <see cref="MethodInfo"/> from the delegate.
/// </summary>
/// <param name="type"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
/// <exception cref="ArgumentException">If type isn't a delegate.</exception>
Return the invoke  from the delegate.
Return the invoke from the delegate .
public static MethodInfo GetDelegateInvoke(this Type type)
        {
            if (type is null)
                throw new ArgumentNullException(nameof(type));
            if (!type.IsDelegate())
                throw new ArgumentException($@"Type ""{type}"" have to be a {nameof(Delegate)}", nameof(type));
            return type.GetMethod("Invoke")!;
        }
public static MethodInfo GetDelegateInvoke ( this Type type ) { if ( type is null ) throw new ArgumentNullException ( nameof ( type ) ) ; if ( ! type . IsDelegate ( ) ) throw new ArgumentException ( $@" Type  "" { type } ""  have to be a  { nameof ( Delegate ) } " , nameof ( type ) ) ; return type . GetMethod ( " " ) ! ; }
Return the invoke  from the delegate.
Return the invoke from the delegate .
None
None
If type isn't a delegate.
If type isn ' t a delegate .
Type
this
type
None