C
codymanix
why do I always have to write the name of the enum type in front of the enum
member?
why not simply writing Red instead of Color.Red? The compiler always knows
which type is expected so there cannot be a collision and the compiler can
simply look up the enum member in the expected type.
wouldn't that be easier and simpler? I see not technical reason for that
verbose syntax.
In c++, writing the type is also not neccesary, so why is it in c#?
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
member?
why not simply writing Red instead of Color.Red? The compiler always knows
which type is expected so there cannot be a collision and the compiler can
simply look up the enum member in the expected type.
wouldn't that be easier and simpler? I see not technical reason for that
verbose syntax.
In c++, writing the type is also not neccesary, so why is it in c#?
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk