Click here to Skip to main content
15,921,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compiler issue? Pin
Chadwick Posey21-Mar-07 8:21
Chadwick Posey21-Mar-07 8:21 
GeneralRe: Compiler issue? Pin
joon vh.21-Mar-07 8:56
joon vh.21-Mar-07 8:56 
GeneralRe: Compiler issue? Pin
Chadwick Posey21-Mar-07 9:26
Chadwick Posey21-Mar-07 9:26 
GeneralRe: Compiler issue? Pin
joon vh.21-Mar-07 9:08
joon vh.21-Mar-07 9:08 
GeneralRe: Compiler issue? Pin
Chadwick Posey21-Mar-07 9:58
Chadwick Posey21-Mar-07 9:58 
QuestionRe: Compiler issue? Pin
Chadwick Posey22-Mar-07 4:18
Chadwick Posey22-Mar-07 4:18 
AnswerRe: Compiler issue? Pin
joon vh.23-Mar-07 7:18
joon vh.23-Mar-07 7:18 
GeneralRe: Compiler issue? Pin
Chadwick Posey23-Mar-07 13:22
Chadwick Posey23-Mar-07 13:22 
Yes, I got the same general response from MS... Section 13.1.3 of the ECMA standard states that the decimal-integer-literal 0 can be implicitly cast to an enum type. It does not, however, provide the same rationale as your MVP friend said.

It definitely displays the stated behavior, because if you do int x = 0; then pass x as your parameter, it does the box properly. I kindof see the point in why the standard is the way it is now. I still think that it should at least generate some sort of level 4 warning or something... it is not like all of us have the time (or the brain space) to memorize the ECMA and C# 2.0 standards...especially one as esoteric as this.



=============================
I'm a developer, he's a developer, she's a developer, Wouldn'tcha like to be a developer too?

JokeRe: Compiler issue? Pin
joon vh.23-Mar-07 16:22
joon vh.23-Mar-07 16:22 
QuestionSimple question about data DataSet, DataView and DataGrid Pin
goldoche21-Mar-07 7:44
goldoche21-Mar-07 7:44 
AnswerRe: Simple question about data DataSet, DataView and DataGrid Pin
Keshav V. Kamat21-Mar-07 22:41
Keshav V. Kamat21-Mar-07 22:41 
QuestionTextBox.OnTextChanged - No stack overflow?? Pin
Shy Agam21-Mar-07 7:34
Shy Agam21-Mar-07 7:34 
AnswerRe: TextBox.OnTextChanged - No stack overflow?? Pin
Edmundisme21-Mar-07 7:45
Edmundisme21-Mar-07 7:45 
GeneralRe: TextBox.OnTextChanged - No stack overflow?? Pin
Shy Agam21-Mar-07 8:03
Shy Agam21-Mar-07 8:03 
GeneralRe: TextBox.OnTextChanged - No stack overflow?? Pin
Dave Kreskowiak21-Mar-07 8:12
mveDave Kreskowiak21-Mar-07 8:12 
GeneralRe: TextBox.OnTextChanged - No stack overflow?? Pin
Shy Agam21-Mar-07 8:19
Shy Agam21-Mar-07 8:19 
GeneralRe: TextBox.OnTextChanged - No stack overflow?? Pin
Edmundisme21-Mar-07 8:25
Edmundisme21-Mar-07 8:25 
QuestionPutting Project Under Configuration Control Pin
ross.anderson21-Mar-07 7:34
ross.anderson21-Mar-07 7:34 
QuestionHow do I respond to a protocol like http://, but more like myProtocol:// ? Pin
Program.X21-Mar-07 7:18
Program.X21-Mar-07 7:18 
AnswerRe: How do I respond to a protocol like http://, but more like myProtocol:// ? Pin
Chadwick Posey21-Mar-07 8:11
Chadwick Posey21-Mar-07 8:11 
GeneralRe: How do I respond to a protocol like http://, but more like myProtocol:// ? Pin
Program.X21-Mar-07 12:19
Program.X21-Mar-07 12:19 
QuestionQuestion about Web Services Pin
Khoramdin21-Mar-07 7:07
Khoramdin21-Mar-07 7:07 
Questionmonitor folder Pin
arkiboys21-Mar-07 7:02
arkiboys21-Mar-07 7:02 
AnswerRe: monitor folder Pin
Laxman Auti21-Mar-07 7:19
Laxman Auti21-Mar-07 7:19 
GeneralRe: monitor folder Pin
arkiboys21-Mar-07 22:44
arkiboys21-Mar-07 22:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.