IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Interfaces.IMethodInfo Interface Reference

The IMethodInfo class is used to encapsulate information about a method in a platform-independent manner. More...

+ Inheritance diagram for NUnit.Framework.Interfaces.IMethodInfo:
+ Collaboration diagram for NUnit.Framework.Interfaces.IMethodInfo:

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...
 
- Public Member Functions inherited from NUnit.Framework.Interfaces.IReflectionInfo
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...
 

Detailed Description

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

Member Function Documentation

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.

Parameters
typeArgumentsThe type arguments to be used
Returns
A new IMethodInfo with the type arguments replaced

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.

Parameters
fixtureThe object on which to invoke the method
argsThe argument list for the method
Returns
The return value from the invoked method

Implemented in NUnit.Framework.Internal.MethodWrapper.

Property Documentation

string NUnit.Framework.Interfaces.IMethodInfo.Name
get

Gets the name of the method.

Referenced by NUnit.Framework.Internal.Test.Test().

bool NUnit.Framework.Interfaces.IMethodInfo.IsAbstract
get

Gets a value indicating whether the method is abstract.

Referenced by NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature().

bool NUnit.Framework.Interfaces.IMethodInfo.IsPublic
get

Gets a value indicating whether the method is public.

Referenced by NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature().

bool NUnit.Framework.Interfaces.IMethodInfo.ContainsGenericParameters
get

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

Referenced by NUnit.Framework.CombiningStrategyAttribute.BuildFrom().

bool NUnit.Framework.Interfaces.IMethodInfo.IsGenericMethod
get

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

bool NUnit.Framework.Interfaces.IMethodInfo.IsGenericMethodDefinition
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().

ITypeInfo NUnit.Framework.Interfaces.IMethodInfo.ReturnType
get

Gets the return Type of the method.


The documentation for this interface was generated from the following file: