C# Class 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.
Afficher le fichier Open project: atomicobject/mvccontrib Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
EncryptStringToBase64 ( this value ) : string

Method Details

GetDerivedType() public static méthode

public static GetDerivedType ( string typeValue ) : Type
typeValue string
Résultat System.Type

GetTypeName() public static méthode

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.
Résultat string

RegisterDerivedTypes() public static méthode

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
Résultat bool

Reset() public static méthode

removes all items from the cache
public static Reset ( ) : void
Résultat void

SetTypeStampSaltValue() public static méthode

public static SetTypeStampSaltValue ( System.Guid guid ) : void
guid System.Guid
Résultat void