src/MVCContrib/Binders/DerivedTypeModelBinderCache.cs
/// <summary>
/// removes all items from the cache
/// </summary>
removes all items from the cache
removes all items from the cache
public static void Reset()
		{
			foreach (var type in _typeCache)
				ModelBinders.Binders.Remove(type.Key);
			_hashToTypeDictionary.Clear();
			_typeToHashDictionary.Clear();
			_typeCache.Clear();
			_activeEncryptionSalt = _originalEncryptionSalt;
		}
public static void Reset ( ) { foreach ( var type in _typeCache ) ModelBinders . Binders . Remove ( type . Key ) ; _hashToTypeDictionary . Clear ( ) ; _typeToHashDictionary . Clear ( ) ; _typeCache . Clear ( ) ; _activeEncryptionSalt = _originalEncryptionSalt ; }
removes all items from the cache
removes all items from the cache
// first, remove all type registrations in Mvc's binder registry // clear the cache // reset salt value