18 using System.Collections.Generic;
33 private readonly Dictionary<string, Type> _types =
new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
44 if (_types.TryGetValue(type.Name, out existingType))
46 if (existingType != type)
49 throw new InvalidOperationException(
55 _types[type.Name] = type;
68 return _types.Remove(type.Name);
79 return _types.TryGetValue(name, out type);