public virtual void AddStorableType(Type typeToAdd)
 {
     if (IsTypeStorable(typeToAdd, false))
     {
         return;
     }
     if (StoredTypes.Contains(typeToAdd))
     {
         return;
     }
     StoredTypes.Add(typeToAdd);
 }
예제 #2
0
        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);
        }