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.Internal.GenericMethodHelper Class Reference

GenericMethodHelper is able to deduce the Type arguments for a generic method from the actual arguments provided. More...

Public Member Functions

 GenericMethodHelper (MethodInfo method)
 Construct a GenericMethodHelper for a method More...
 
Type[] GetTypeArguments (object[] argList)
 Return the type argments for the method, deducing them from the arguments actually provided. More...
 

Properties

MethodInfo Method [get, set]
 
Type[] TypeParms [get, set]
 
Type[] TypeArgs [get, set]
 
Type[] ParmTypes [get, set]
 

Private Member Functions

void TryApplyArgType (Type parmType, Type argType)
 
void ApplyArgType (Type parmType, Type argType)
 
bool IsAssignableToGenericType (Type givenType, Type genericType)
 

Detailed Description

GenericMethodHelper is able to deduce the Type arguments for a generic method from the actual arguments provided.

Constructor & Destructor Documentation

NUnit.Framework.Internal.GenericMethodHelper.GenericMethodHelper ( MethodInfo  method)
inline

Construct a GenericMethodHelper for a method

Parameters
methodMethodInfo for the method to examine

Member Function Documentation

Type [] NUnit.Framework.Internal.GenericMethodHelper.GetTypeArguments ( object[]  argList)
inline

Return the type argments for the method, deducing them from the arguments actually provided.

Parameters
argListThe arguments to the method
Returns
An array of type arguments.

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

void NUnit.Framework.Internal.GenericMethodHelper.TryApplyArgType ( Type  parmType,
Type  argType 
)
inlineprivate
void NUnit.Framework.Internal.GenericMethodHelper.ApplyArgType ( Type  parmType,
Type  argType 
)
inlineprivate
bool NUnit.Framework.Internal.GenericMethodHelper.IsAssignableToGenericType ( Type  givenType,
Type  genericType 
)
inlineprivate

Property Documentation

MethodInfo NUnit.Framework.Internal.GenericMethodHelper.Method
getsetprivate
Type [] NUnit.Framework.Internal.GenericMethodHelper.TypeParms
getsetprivate
Type [] NUnit.Framework.Internal.GenericMethodHelper.TypeArgs
getsetprivate
Type [] NUnit.Framework.Internal.GenericMethodHelper.ParmTypes
getsetprivate

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