public static QueryCellField FromValue(string value)
 {
     foreach (QueryCellField queryCellField in QueryCellField.Values())
     {
         if (queryCellField.Value().Equals(value))
         {
             return(queryCellField);
         }
     }
     throw new ArgumentException(value.ToString());
 }
        public static List <QueryCellField> Values()
        {
            QueryCellField        queryCellField     = new QueryCellField();
            List <QueryCellField> queryCellFieldList = new List <QueryCellField>();

            foreach (FieldInfo field in queryCellField.GetType().GetFields())
            {
                queryCellFieldList.Add((QueryCellField)field.GetValue((object)queryCellField));
            }
            return(queryCellFieldList);
        }