How about these extensions:
public static class EnumExtension {
With this, you can create your enumeration as follows:
public enum Foo { [Description("Foo - Something")] Something, [Description("Foo - Anything")] Anything, }
And get your list as follows:
var list = EnumExtension.ToList<Foo>();
Oliver
source share