All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
34
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to General and Gameplay Programming
[.net] Enumerating enums
General and Gameplay Programming
Programming
Started by
Headkaze
June 08, 2007 09:19 PM
1
comment, last by
Mike.Popoloski
16 years, 10 months ago
Headkaze
607
Author
June 08, 2007 09:19 PM
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?
Cancel
Save
Advertisement
Martee
476
June 08, 2007 09:39 PM
Have a look at Enum.GetName() and Enum.GetNames().
Cancel
Save
ReactOS
- an Open-source operating system compatible with Windows NT apps and drivers
Mike.Popoloski
3,259
June 09, 2007 02:22 PM
As well as Enum.GetValues(). In fact, just look at the
Enum
class.
Cancel
Save
Mike Popoloski |
Journal
|
SlimDX
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
Do your part to stop global warming and climate change
GDNet Lounge
C++ how do you use dependency injection?
For Beginners
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
Advertisement
Recommended Tutorials
Pac-Man: Zero To Game
General and Gameplay Programming
Women In Game Development #3
Business and Law
OpenGL 3.3+ Tutorials
Graphics and GPU Programming
The C++ Standard Library Part 1
General and Gameplay Programming
Dominoze PC Post-mortem: Nine Years, One Programmer
Game Design and Theory
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top