Enumeration using reflection

  • Thread starter Thread starter Carl Gilbert
  • Start date Start date
C

Carl Gilbert

Hi
I am trying to iterate through an enumeration type using reflection to
show the different options available.

So far I have got the app to show the type (Int, Boolean, enum, etc)
but need to expand upon the enum.

Any help would be greatly appreciated.
Redards, Carl Gilbert.
 
* (e-mail address removed) (Carl Gilbert) scripsit:
I am trying to iterate through an enumeration type using reflection to
show the different options available.

So far I have got the app to show the type (Int, Boolean, enum, etc)
but need to expand upon the enum.

\\\
ColorList.AddRange([Enum].GetNames(GetType(KnownColor)))
///
 

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

Back
Top