private void AddOrReplace(Type type, string typeName, CompositeType definition)
 {
     storageByType[type]     = definition;
     storageByName[typeName] = definition;
 }
Example #2
0
 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));
 }