C# 클래스 NUnit.Framework.Internal.GenericMethodHelper

GenericMethodHelper is able to deduce the Type arguments for a generic method from the actual arguments provided.
파일 보기 프로젝트 열기: nunit/nunit

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[]