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

            foreach (FieldInfo field in blockingTaskField.GetType().GetFields())
            {
                blockingTaskFieldList.Add((QueryBlockingTaskField)field.GetValue((object)blockingTaskField));
            }
            return(blockingTaskFieldList);
        }