<PackageReference Include="NUnit" Version="3.14.0" />

IMethodInfo

public interface IMethodInfo : IReflectionInfo
The IMethodInfo class is used to encapsulate information about a method in a platform-independent manner.

Gets a value indicating whether the method contains unassigned generic type parameters.

bool IsAbstract { get; }

Gets a value indicating whether the method is abstract.

bool IsGenericMethod { get; }

Gets a value indicating whether the method is a generic method.

Gets a value indicating whether the MethodInfo represents the definition of a generic method.

bool IsPublic { get; }

Gets a value indicating whether the method is public.

bool IsStatic { get; }

Gets a value indicating whether the method is static.

Gets the MethodInfo for this method.

string Name { get; }

Gets the name of the method.

Gets the return Type of the method.

Gets the Type from which this method was reflected.

Returns the Type arguments of a generic method or the Type parameters of a generic method definition.

Gets the parameters of the method.

object Invoke(object fixture, object[] args)

Invokes the method, converting any TargetInvocationException to an NUnitException.

Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo.