[.net] Enumerating enums

Started by
1 comment, last by Mike.Popoloski 16 years, 10 months ago
I understand you can enumerate enums, but is it possible to get both name and value? Eg. enum Test { Test = 1, Test2 = 2 } Can I get both Test/1, Test2/2?
Advertisement
Have a look at Enum.GetName() and Enum.GetNames().
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
As well as Enum.GetValues(). In fact, just look at the Enum class.
Mike Popoloski | Journal | SlimDX

This topic is closed to new replies.

Advertisement