private void AddOrReplace(Type type, string typeName, CompositeType definition) { storageByType[type] = definition; storageByName[typeName] = definition; }
public bool TryGet(string typeName, out CompositeType definition) { Ensure.NotNullOrEmpty(typeName, "typeName"); return(storageByName.TryGetValue(typeName, out definition)); }
public bool TryGet(Type type, out CompositeType definition) { Ensure.NotNull(type, "type"); return(storageByType.TryGetValue(type, out definition)); }