using System.ComponentModel;
public static void Main()
var value = MatchType.NoMatch;
Console.WriteLine(value.GetDescription<MatchType>());
[Description("No Match")]
public static class EnumHelper
public static string GetDescription<T>(this T value)
var attribute = (DescriptionAttribute) value.GetType()
.GetField(value.ToString())
.GetCustomAttributes(false)
.Where(a => a is DescriptionAttribute)
return attribute != null ? attribute.Description : value.ToString();