Click here to Skip to main content
12,358,775 members (61,965 online)
Click here to Skip to main content
Alternatives (1)
Add your own
alternative version

Tagged as

Stats

20.1K views
11 bookmarked
Posted

Quick And Dirty Option Lists using Enums

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

Alternatives

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

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

License

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

Share

About the Author

DaveAuld
Engineer
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
Web01 | 2.8.160621.1 | Last Updated 3 Jun 2014
Article Copyright 2011 by DaveAuld
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid