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)))
///
 
Back
Top