This project is read-only.

EnumHelper class

Simple class with various utilities for Enumerations:


// Get Names returns an array of strings for all the values in an enumeration
IEnumerable<string> names =  EnumHelper.GetNames<InputPanelKeyboard>();

// Parse (Generic) used to convert a name back to an Enumeration value:
var value = EnumHelper.Parse<InputPanelKeyboard>("Default");

Last edited Mar 28, 2011 at 5:30 AM by TheADOGuy, version 1

Comments

No comments yet.