C# Class NUnit.Framework.Internal.GenericMethodHelper

GenericMethodHelper is able to deduce the Type arguments for a generic method from the actual arguments provided.
Afficher le fichier Open project: nunit/nunit

Private Properties

Свойство Type Description
ApplyArgType void
IsAssignableToGenericType bool
TryApplyArgType void

Méthodes publiques

Méthode 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

Méthode Description
ApplyArgType ( Type parmType, Type argType ) : void
IsAssignableToGenericType ( Type givenType, Type genericType ) : bool
TryApplyArgType ( Type parmType, Type argType ) : void

Method Details

GenericMethodHelper() public méthode

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

GetTypeArguments() public méthode

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
Résultat System.Type[]