Geeks With Blogs


Rodney Vinyard - .NET & SQL Developer When all is said and done, more will be said than done March 2012 Entries
Get index of an enum via string
Get index of an enum via string Thanks to by serkan sendur : I have a bunch of checkboxes on a Windows form and I put the exact checkbox names in an enum chkSelectedenum I want to collect the checkbox names into a hashset I will pass the hashset to another class that also can see chkSelectedenum So that 1. we do not have to hardcode checkbox names into if..then.else..switch statements 2. another class can work with the hashset & enum ......

Posted On Friday, March 2, 2012 12:09 PM

Copyright © Rodney Vinyard | Powered by: