Extension method for getting enum items description
Make sure each enum item has System.ComponentModel.DataAnnotations.DisplayAttribute.
eg [System.ComponentModel.DataAnnotations.Display(Name = "Email Contact", Description = "Email Contact from the Contact Editor / Viewer")]
if the enum item doesn't have the attribute, an empty string is returned.
Namespace:
Contracts
Assembly: Contracts (in Contracts.dll)
Assembly: Contracts (in Contracts.dll)