Return to Snippet

Revision: 9965
at December 1, 2008 16:34 by hoffstein


Initial Code
string[] names = Enum.GetNames(typeof(MyEnumName));

Initial URL


Initial Description
Retrieves an array of strings corresponding to members of the given enum.  Useful for looping through them at runtime.

Initial Title
C# Get Enum Members

Initial Tags


Initial Language
C#