public static List <QueryProviderVdcResourcePoolRelationField> Values()
        {
            QueryProviderVdcResourcePoolRelationField        poolRelationField     = new QueryProviderVdcResourcePoolRelationField();
            List <QueryProviderVdcResourcePoolRelationField> poolRelationFieldList = new List <QueryProviderVdcResourcePoolRelationField>();

            foreach (FieldInfo field in poolRelationField.GetType().GetFields())
            {
                poolRelationFieldList.Add((QueryProviderVdcResourcePoolRelationField)field.GetValue((object)poolRelationField));
            }
            return(poolRelationFieldList);
        }
 public static QueryProviderVdcResourcePoolRelationField FromValue(
     string value)
 {
     foreach (QueryProviderVdcResourcePoolRelationField poolRelationField in QueryProviderVdcResourcePoolRelationField.Values())
     {
         if (poolRelationField.Value().Equals(value))
         {
             return(poolRelationField);
         }
     }
     throw new ArgumentException(value.ToString());
 }