65.9K
CodeProject is changing. Read more.
Home

Quick And Dirty Option Lists using Enums

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Mar 8, 2011

CPOL
viewsIcon

7265

In C#, I just call ToString to get the name. It's quicker and dirtier...namespace EnumTest{ using System; using System.Linq; enum ListOfChoices : int { Yes, No, Possibly, Never, Pass } class Program { ...