C# 클래스 MvcContrib.Binders.DerivedTypeModelBinderCache

This cache is used to both improve performance of the derived type model binder on cases where a binding type has already been identified.
파일 보기 프로젝트 열기: atomicobject/mvccontrib 1 사용 예제들

공개 메소드들

메소드 설명
GetDerivedType ( string typeValue ) : Type
GetTypeName ( Type type ) : string

Gets a hashed name for the given type and also checks to see if the type has been registered.

RegisterDerivedTypes ( Type baseType, IEnumerable derivedTypes ) : bool

Registers the attached set of derived types by the indicated base type

Reset ( ) : void

removes all items from the cache

SetTypeStampSaltValue ( System.Guid guid ) : void

비공개 메소드들

메소드 설명
EncryptStringToBase64 ( this value ) : string

메소드 상세

GetDerivedType() 공개 정적인 메소드

public static GetDerivedType ( string typeValue ) : Type
typeValue string
리턴 System.Type

GetTypeName() 공개 정적인 메소드

Gets a hashed name for the given type and also checks to see if the type has been registered.
public static GetTypeName ( Type type ) : string
type System.Type The type.
리턴 string

RegisterDerivedTypes() 공개 정적인 메소드

Registers the attached set of derived types by the indicated base type
public static RegisterDerivedTypes ( Type baseType, IEnumerable derivedTypes ) : bool
baseType System.Type base type that will be encountered by the binder where an alternate value should be used
derivedTypes IEnumerable an enumerable set of types to be considered for binding
리턴 bool

Reset() 공개 정적인 메소드

removes all items from the cache
public static Reset ( ) : void
리턴 void

SetTypeStampSaltValue() 공개 정적인 메소드

public static SetTypeStampSaltValue ( System.Guid guid ) : void
guid System.Guid
리턴 void