C# Класс NUnit.Framework.Internal.GenericMethodHelper

GenericMethodHelper is able to deduce the Type arguments for a generic method from the actual arguments provided.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
ApplyArgType void
IsAssignableToGenericType bool
TryApplyArgType void

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ApplyArgType ( Type parmType, Type argType ) : void
IsAssignableToGenericType ( Type givenType, Type genericType ) : bool
TryApplyArgType ( Type parmType, Type argType ) : void

Описание методов

GenericMethodHelper() публичный Метод

Construct a GenericMethodHelper for a method
public GenericMethodHelper ( MethodInfo method ) : System
method System.Reflection.MethodInfo MethodInfo for the method to examine
Результат System

GetTypeArguments() публичный Метод

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
Результат System.Type[]