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

NUnit.Framework.Internal.MethodWrapper

The MethodWrapper class wraps a MethodInfo so that it may be used in a platform-independent manner.
namespace NUnit.Framework.Internal { public class MethodWrapper : IMethodInfo, IReflectionInfo, IEquatable<MethodWrapper> { public ITypeInfo TypeInfo { get; } public MethodInfo MethodInfo { get; } public string Name { get; } public bool IsAbstract { get; } public bool IsPublic { get; } public bool IsStatic { get; } public bool ContainsGenericParameters { get; } public bool IsGenericMethod { get; } public bool IsGenericMethodDefinition { get; } public ITypeInfo ReturnType { get; } public MethodWrapper(Type type, MethodInfo method); public MethodWrapper(Type type, string methodName); public IParameterInfo[] GetParameters(); public Type[] GetGenericArguments(); public IMethodInfo MakeGenericMethod(params Type[] typeArguments); public T[] GetCustomAttributes<T>(bool inherit) where T : class; public bool IsDefined<T>(bool inherit) where T : class; public object Invoke(object fixture, params object[] args); public bool Equals(MethodWrapper other); } }