src/MVCContrib/Binders/DerivedTypeModelBinderCache.cs
/// <summary>
/// Gets a hashed name for the given type and also checks to see if the type has been registered.
/// </summary>
/// <param name="type">The type.</param>
/// <returns></returns>
Gets a hashed name for the given type and also checks to see if the type has been registered.
Gets a hashed name for the given type and also checks to see if the type has been registered .
public static string GetTypeName(Type type)
		{
			try
			{
				return _typeToHashDictionary[type];
			}
			catch( KeyNotFoundException keyNotFoundException)
			{
				throw new KeyNotFoundException(
					string.Format("Type {0} is not registered with the DerivedTypeModelBinder", type.Name), keyNotFoundException);
			}
		}
public static string GetTypeName ( Type type ) { try { return _typeToHashDictionary [ type ] ; } catch ( KeyNotFoundException keyNotFoundException ) { throw new KeyNotFoundException ( string . Format ( " " , type . Name ) , keyNotFoundException ) ; } }
Gets a hashed name for the given type and also checks to see if the type has been registered.
Gets a hashed name for the given type and also checks to see if the type has been registered .
None
type
Type
None