Beispiel #1
0
        public static List <QueryOrgVdcStorageProfileField> Values()
        {
            QueryOrgVdcStorageProfileField        storageProfileField     = new QueryOrgVdcStorageProfileField();
            List <QueryOrgVdcStorageProfileField> storageProfileFieldList = new List <QueryOrgVdcStorageProfileField>();

            foreach (FieldInfo field in storageProfileField.GetType().GetFields())
            {
                storageProfileFieldList.Add((QueryOrgVdcStorageProfileField)field.GetValue((object)storageProfileField));
            }
            return(storageProfileFieldList);
        }
Beispiel #2
0
 public static QueryOrgVdcStorageProfileField FromValue(
     string value)
 {
     foreach (QueryOrgVdcStorageProfileField storageProfileField in QueryOrgVdcStorageProfileField.Values())
     {
         if (storageProfileField.Value().Equals(value))
         {
             return(storageProfileField);
         }
     }
     throw new ArgumentException(value.ToString());
 }