IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The IMethodInfo class is used to encapsulate information about a method in a platform-independent manner. More...
Public Member Functions | |
IParameterInfo[] | GetParameters () |
Gets the parameters of the method. More... | |
Type[] | GetGenericArguments () |
Returns the Type arguments of a generic method or the Type parameters of a generic method definition. More... | |
IMethodInfo | MakeGenericMethod (params Type[] typeArguments) |
Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. More... | |
object | Invoke (object fixture, params object[] args) |
Invokes the method, converting any TargetInvocationException to an NUnitException. More... | |
![]() | |
T[] | GetCustomAttributes< T > (bool inherit) |
Returns an array of custom attributes of the specified type applied to this object More... | |
bool | IsDefined< T > (bool inherit) |
Returns a value indicating whether an attribute of the specified type is defined on this object. More... | |
Properties | |
ITypeInfo | TypeInfo [get] |
Gets the Type from which this method was reflected. More... | |
MethodInfo | MethodInfo [get] |
Gets the MethodInfo for this method. More... | |
string | Name [get] |
Gets the name of the method. More... | |
bool | IsAbstract [get] |
Gets a value indicating whether the method is abstract. More... | |
bool | IsPublic [get] |
Gets a value indicating whether the method is public. More... | |
bool | ContainsGenericParameters [get] |
Gets a value indicating whether the method contains unassigned generic type parameters. More... | |
bool | IsGenericMethod [get] |
Gets a value indicating whether the method is a generic method. More... | |
bool | IsGenericMethodDefinition [get] |
Gets a value indicating whether the MethodInfo represents the definition of a generic method. More... | |
ITypeInfo | ReturnType [get] |
Gets the return Type of the method. More... | |
The IMethodInfo class is used to encapsulate information about a method in a platform-independent manner.
IParameterInfo [] NUnit.Framework.Interfaces.IMethodInfo.GetParameters | ( | ) |
Gets the parameters of the method.
Implemented in NUnit.Framework.Internal.MethodWrapper.
Referenced by NUnit.Framework.CombiningStrategyAttribute.BuildFrom(), NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature(), NUnit.Framework.TestCaseAttribute.GetParametersForTestCase(), and NUnit.Framework.TestCaseSourceAttribute.GetTestCasesFor().
Type [] NUnit.Framework.Interfaces.IMethodInfo.GetGenericArguments | ( | ) |
Returns the Type arguments of a generic method or the Type parameters of a generic method definition.
Implemented in NUnit.Framework.Internal.MethodWrapper.
Referenced by NUnit.Framework.CombiningStrategyAttribute.BuildFrom().
IMethodInfo NUnit.Framework.Interfaces.IMethodInfo.MakeGenericMethod | ( | params Type[] | typeArguments | ) |
Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo.
typeArguments | The type arguments to be used |
Implemented in NUnit.Framework.Internal.MethodWrapper.
object NUnit.Framework.Interfaces.IMethodInfo.Invoke | ( | object | fixture, |
params object[] | args | ||
) |
Invokes the method, converting any TargetInvocationException to an NUnitException.
fixture | The object on which to invoke the method |
args | The argument list for the method |
Implemented in NUnit.Framework.Internal.MethodWrapper.
|
get |
Gets the Type from which this method was reflected.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.BuildTestMethod(), NUnit.Framework.Internal.Builders.DatapointProvider.GetDataFor(), NUnit.Framework.ValueSourceAttribute.GetDataSource(), NUnit.Framework.TestCaseSourceAttribute.GetTestCaseSource(), and NUnit.Framework.Internal.Test.Test().
|
get |
Gets the MethodInfo for this method.
Referenced by NUnit.Framework.Internal.Builders.DefaultTestCaseBuilder.BuildParameterizedMethodSuite(), NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.BuildTestMethod(), NUnit.Framework.Internal.TestNameGenerator.NameFragment.GetText(), and NUnit.Framework.Internal.Execution.WorkItem.InitializeContext().
|
get |
Gets the name of the method.
Referenced by NUnit.Framework.Internal.Test.Test().
|
get |
Gets a value indicating whether the method is abstract.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature().
|
get |
Gets a value indicating whether the method is public.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature().
|
get |
Gets a value indicating whether the method contains unassigned generic type parameters.
Referenced by NUnit.Framework.CombiningStrategyAttribute.BuildFrom().
|
get |
Gets a value indicating whether the method is a generic method.
|
get |
Gets a value indicating whether the MethodInfo represents the definition of a generic method.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature(), and NUnit.Framework.TestCaseSourceAttribute.GetTestCasesFor().
|
get |
Gets the return Type of the method.