Click here to Skip to main content
11,479,170 members (47,778 online)
Click here to Skip to main content
Alternatives (1)

Tagged as

Quick And Dirty Option Lists using Enums

, 3 Jun 2014 CPOL 17.8K 11
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.
Follow on   Twitter   Google+   LinkedIn

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