Why do some people use "None" as enumeration member ?
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-04-16T06:22:01Z
Indexed on
2010/04/16
6:33 UTC
Read the original article
Hit count: 154
c#
I noticed that some enumerations have "None" as a enumeration member.
For example what I mean
enum Mode
{
Mode1 = 1,
Mode2 = 2,
Mode3 = 3,
None = 4
}
Why do they use it ? In what cases solution with a none member is more preferable (less preferable) ?
© Stack Overflow or respective owner