|
-
May 14th, 2008, 05:11 PM
#8
Re: basic questions about enum
 Originally Posted by George2
I agree, JonnyPoet!
But what is wrong with using default when we need to add new values in Enum -- as MSDN mentioned? I showed my code in post #10. Any comments?
regards,
George
There is nothing 'wrong' with that. Don't do it such philosophic. You only have to know that it could happen and you have to decide in your programs what to do or not to do. This depends on every specific case you are working on.
it only said:
 Originally Posted by Georg2
...and if additional elements have been added to the enum type, the test for default values can return true unexpectedly
You wrote this in I think it was the first post point 2. Read whats written there and dont implement deas in the concept like something is 'wrong'
 Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|