DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="3.2.0" />

 MethodExtensions

public static class MethodExtensions
Various extension methods for method reflection.
public static Type[] GetParameterTypes(this MethodBase method)

Returns method parameter types respecting order of parameters.

public static bool SignatureEquals(this MethodBase method, Type[] parameters)

Determines whether the method parameters have the same set of types as in given array of types.

public static bool SignatureEquals(this MethodBase method, MethodBase other, bool respectCallingConvention = false)

Determines whether formal parameters of both methods are equal by type.

public static bool SignatureEquals(this MethodInfo method, MethodInfo other, bool respectCallingConvention = false)

Determines whether formal parameters of both methods are equal by type and return types are also equal.

public static Result<object> TryInvoke(this MethodBase method, object obj, object[] args)

Invokes the method or constructor represented by the current instance, using the specified arguments.