Posted By

hoffstein on 12/01/08


Tagged

csharp


Versions (?)

Who likes this?

9 people have marked this snippet as a favorite

hoffstein
umang_nine
ddevening
LeeRJohnson
paelgr
emregulcan
mheinrich
Priestd09
danfinrud55


C# Get Enum Members


 / Published in: C#
 

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

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

Report this snippet  

You need to login to post a comment.