Click here to Skip to main content
15,888,733 members
Articles / Programming Languages / C#

C# Replacing switch(enum) flow control with Reflection

Rate me:
Please Sign up or sign in to vote.
3.26/5 (17 votes)
18 Aug 2017CPOL6 min read 21.2K   117   9  
Hard coded enumerations are great, until you need to use them for program flow control that is.

Alternatives

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

No alternatives have been posted.

License

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


Written By
Software Developer (Senior)
United States United States
Professional Experience
Languages: C++, C#, VB, .Net, SQL
Systems: MSSQL Database Architecture, Server Admin, MS System Center Admin(Service Manager)
Web: Asp.Net, Ajax, Web design and deployment
Other: MS Access guru

Comments and Discussions