IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The MethodWrapper class wraps a MethodInfo so that it may be used in a platform-independent manner. More...
Public Member Functions | |
MethodWrapper (Type type, MethodInfo method) | |
Construct a MethodWrapper for a Type and a MethodInfo. More... | |
MethodWrapper (Type type, string methodName) | |
Construct a MethodInfo for a given Type and method name. More... | |
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... | |
T[] | GetCustomAttributes< T > (bool inherit) |
Returns an array of custom attributes of the specified type applied to this method More... | |
bool | IsDefined< T > (bool inherit) |
Gets a value indicating whether one or more attributes of the spcified type are defined on the method. More... | |
object | Invoke (object fixture, params object[] args) |
Invokes the method, converting any TargetInvocationException to an NUnitException. More... | |
override string | ToString () |
Override ToString() so that error messages in NUnit's own tests make sense More... | |
Properties | |
ITypeInfo | TypeInfo [get, private set] |
Gets the Type from which this method was reflected. More... | |
MethodInfo | MethodInfo [get, private set] |
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... | |
![]() | |
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 MethodWrapper class wraps a MethodInfo so that it may be used in a platform-independent manner.
|
inline |
Construct a MethodWrapper for a Type and a MethodInfo.
|
inline |
Construct a MethodInfo for a given Type and method name.
|
inline |
|
inline |
Returns the Type arguments of a generic method or the Type parameters of a generic method definition.
Implements NUnit.Framework.Interfaces.IMethodInfo.
|
inline |
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 |
Implements NUnit.Framework.Interfaces.IMethodInfo.
|
inline |
Returns an array of custom attributes of the specified type applied to this method
Implements NUnit.Framework.Interfaces.IReflectionInfo.
T | : | class |
|
inline |
Gets a value indicating whether one or more attributes of the spcified type are defined on the method.
Implements NUnit.Framework.Interfaces.IReflectionInfo.
|
inline |
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 |
Implements NUnit.Framework.Interfaces.IMethodInfo.
References NUnit.Framework.Internal.Reflect.InvokeMethod().
|
inline |
Override ToString() so that error messages in NUnit's own tests make sense
|
getprivate set |
Gets the Type from which this method was reflected.
|
getprivate set |
Gets the MethodInfo for this method.
|
get |
Gets the name of the method.
|
get |
Gets a value indicating whether the method is abstract.
|
get |
Gets a value indicating whether the method is public.
|
get |
Gets a value indicating whether the method contains unassigned generic type parameters.
|
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.
|
get |
Gets the return Type of the method.