Click here to Skip to main content
12,892,320 members (48,117 online)
Click here to Skip to main content
Alternatives (1)
Add your own
alternative version

Tagged as


11 bookmarked
Posted 22 Feb 2011

Quick And Dirty Option Lists using Enums

, 3 Jun 2014 CPOL
Using Enum to provide a quick and easy option lists


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

12 Sep 2011
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 { ...


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Scotland Scotland
I have been working in the Oil & Gas Industry for over 25 years now.

Core Discipline is Instrumentation and Control Systems.

Completed Bsc Honours Degree (B29 in Computing) with the Open University in 2012.

Currently, Offshore Installation Manager in the Al Shaheen oil field, which is located off the coast of Qatar.

Prior to this, 25 years of North Sea Oil & Gas experience.

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170424.1 | Last Updated 3 Jun 2014
Article Copyright 2011 by DaveAuld
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid