using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
public static class EnumExtensions
{
/////
///// Gets the Enum value description.
/////
///// The value.
/////
//public static String ToDescription(this Enum value)
//{
// FieldInfo fi = value.GetType().GetField(value.ToString());
// DescriptionAttribute[] attributes = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
// if (attributes != null &&
// attributes.Length > 0)
// return attributes[0].Description;
// else
// return value.ToString();
//}
}