C# 클래스 WebStreams.Server.GenericMethodReflectionHelper

Reflection helper for generic methods.
파일 보기 프로젝트 열기: WebStreams/WebStreams.Server

공개 메소드들

메소드 설명
GenericMethodParametersMatch ( this method, Type parameters, Type typeParameters ) : bool

Returns if the provided parameters match the parameters for method; otherwise returns .

GetGenericMethod ( this type, string name, Type parameters, Type typeParameters ) : MethodInfo

Returns the generic method on type matching the provided parameters.

IsNumericType ( this type ) : bool

Returns a value indicating whether or not this is a numeric type.

ShouldUseStaticTryParseMthod ( this type ) : bool

Returns a value indicating whether or not deserialization should use a static TryParse method on the provided type.

메소드 상세

GenericMethodParametersMatch() 공개 정적인 메소드

Returns if the provided parameters match the parameters for method; otherwise returns .
public static GenericMethodParametersMatch ( this method, Type parameters, Type typeParameters ) : bool
method this /// The method. ///
parameters System.Type /// The parameters. ///
typeParameters System.Type /// The type parameters linking and . ///
리턴 bool

GetGenericMethod() 공개 정적인 메소드

Returns the generic method on type matching the provided parameters.
public static GetGenericMethod ( this type, string name, Type parameters, Type typeParameters ) : MethodInfo
type this /// The type. ///
name string /// The name of the method. ///
parameters System.Type /// The parameters. ///
typeParameters System.Type /// The type parameters. ///
리턴 System.Reflection.MethodInfo

IsNumericType() 공개 정적인 메소드

Returns a value indicating whether or not this is a numeric type.
public static IsNumericType ( this type ) : bool
type this /// The type. ///
리턴 bool

ShouldUseStaticTryParseMthod() 공개 정적인 메소드

Returns a value indicating whether or not deserialization should use a static TryParse method on the provided type.
public static ShouldUseStaticTryParseMthod ( this type ) : bool
type this The type.
리턴 bool