public virtual void AddStorableType(Type typeToAdd) { if (IsTypeStorable(typeToAdd, false)) { return; } if (StoredTypes.Contains(typeToAdd)) { return; } StoredTypes.Add(typeToAdd); }
public virtual PropertyValueType LookUpType(String typeName) { PropertyValueType type = null; foreach (PropertyValueType t in StoredTypes) { if (t.ValueTypeName == typeName) { type = t; break; } } if (null == type) { type = new PropertyValueType(typeName); if (null != type) { StoredTypes.Add(type); } } return(type); }