C# Class NUnit.Framework.Internal.GenericMethodHelper

GenericMethodHelper is able to deduce the Type arguments for a generic method from the actual arguments provided.
ファイルを表示 Open project: nunit/nunit

Private Properties

Property Type Description
ApplyArgType void
IsAssignableToGenericType bool
TryApplyArgType void

Public Methods

Method Description
GenericMethodHelper ( MethodInfo method ) : System

Construct a GenericMethodHelper for a method

GetTypeArguments ( object argList ) : System.Type[]

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

Private Methods

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

Method Details

GenericMethodHelper() public method

Construct a GenericMethodHelper for a method
public GenericMethodHelper ( MethodInfo method ) : System
method System.Reflection.MethodInfo MethodInfo for the method to examine
return System

GetTypeArguments() public method

Return the type arguments for the method, deducing them from the arguments actually provided.
public GetTypeArguments ( object argList ) : System.Type[]
argList object The arguments to the method
return System.Type[]