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.
Показать файл Открыть проект Примеры использования класса

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

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