IMethodInfo
The IMethodInfo class is used to encapsulate information
about a method in a platform-independent manner.
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace NUnit.Framework.Interfaces
{
[NullableContext(1)]
public interface IMethodInfo : IReflectionInfo
{
ITypeInfo TypeInfo { get; }
MethodInfo MethodInfo { get; }
string Name { get; }
bool IsAbstract { get; }
bool IsPublic { get; }
bool IsStatic { get; }
bool ContainsGenericParameters { get; }
bool IsGenericMethod { get; }
bool IsGenericMethodDefinition { get; }
ITypeInfo ReturnType { get; }
IParameterInfo[] GetParameters();
Type[] GetGenericArguments();
IMethodInfo MakeGenericMethod(params Type[] typeArguments);
[NullableContext(2)]
object Invoke(object fixture, params object[] args);
}
}