Development – Leet 4 Life

Software Development Code Samples and More

Skip to: Content | Sidebar | Footer

Tag: Value

Converting a Value Back to an Enumeration

23 March, 2012 | C#. NET | By: Michael Merrell

Stored enumeration values need a way to be converted back to to their enumeration type.  In a previous post I go into detail on how to get the values on an enumeration and return them in a usable data format.  This is great if we want to store the value in the database, but when you pull the value back out you need to have a way to convert it back into something usable.   There are two methods defined below, both take in a Type parameter and then a value parameter.  The first method below also takes in a default value in [Read More…]