예제 #1
0
        /// <summary>
        /// Loads the specified field.
        /// </summary>
        /// <param name="field">The field.</param>
        /// <returns></returns>
        public static MetaDictionary Load(MetaField field)
        {
            if (field == null)
            {
                throw new ArgumentNullException("field");
            }

            return(MetaDictionary.Load(field.Id));
        }
예제 #2
0
 public void LoadDictionary()
 {
     if (_dictionary == null)
     {
         switch (_dataType)
         {
         case MetaDataType.DictionaryMultivalue:
         case MetaDataType.DictionarySingleValue:
         case MetaDataType.EnumMultivalue:
         case MetaDataType.EnumSingleValue:
             _dictionary = MetaDictionary.Load(Id);
             break;
         }
     }
 }