Enumerate the enum values

  • Thread starter Alexander Vasilevsky
  • Start date
A

Alexander Vasilevsky

I have a enum.
I need to get the character array of names of the constants that are
included in this enum.

http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
Gift
 
F

Family Tree Mike

Alexander Vasilevsky said:
I have a enum.
I need to get the character array of names of the constants that are
included in this enum.

http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
Gift

string [] names = System.Enum.GetNames(typeof(enumSomeEnumType));

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top