Steve Wellens

Programming in the .Net environment



Browse by Tags

All Tags » enum (RSS)
How to Fill a ListBox/DropDownList from an Enum
There was a question about this on the Asp.Net forums and after a quick search I didn't find a good generic function so I thought I'd supply one. Note: I wanted this to be as broad and useful as possible, so the second parameter is a ListControl which...
Posted: Aug 19 2009, 11:57 AM by SGWellens | with 3 comment(s)
Filed under: , ,
Converting Strings to Enums
Enums are great. They provide additional type safety and make code more readable. Converting enums to strings is trivial. Converting strings to enums is not as here is a code snippet: // This enum is in the .Net frameworkpublic enum...
Posted: Oct 26 2008, 11:00 AM by SGWellens | with 1 comment(s)
Filed under: , ,
More Posts