Click here to Skip to main content
15,887,434 members
Home / Discussions / C#
   

C#

 
GeneralRe: compile time error or runtime error? Pin
George_George14-May-08 16:07
George_George14-May-08 16:07 
AnswerRe: compile time error or runtime error? Pin
#realJSOP4-May-08 4:07
mve#realJSOP4-May-08 4:07 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 4:37
George_George4-May-08 4:37 
GeneralRe: compile time error or runtime error? Pin
Guffa4-May-08 7:32
Guffa4-May-08 7:32 
GeneralRe: compile time error or runtime error? Pin
#realJSOP4-May-08 9:41
mve#realJSOP4-May-08 9:41 
GeneralRe: compile time error or runtime error? Pin
Guffa4-May-08 14:12
Guffa4-May-08 14:12 
GeneralRe: compile time error or runtime error? Pin
#realJSOP5-May-08 2:49
mve#realJSOP5-May-08 2:49 
GeneralRe: compile time error or runtime error? Pin
Guffa5-May-08 10:30
Guffa5-May-08 10:30 
John Simmons / outlaw programmer wrote:
I did, and it aborts in the debugger.


That sounds strange...

Aborts? What is that exactly? An exception?

I tried the code both in VS 2005 (C# 2.0) and VS 2008 (C# 3.0), and I can't get it to fail.

John Simmons / outlaw programmer wrote:
The only way it would work is to cast using Convert.ToIn32


That doesn't make sense. Why would it not be possible to unbox an int?

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 18:55
George_George4-May-08 18:55 
GeneralRe: compile time error or runtime error? Pin
Guffa4-May-08 23:28
Guffa4-May-08 23:28 
GeneralRe: compile time error or runtime error? Pin
George_George7-May-08 1:27
George_George7-May-08 1:27 
AnswerRe: compile time error or runtime error? Pin
Daniel Grunwald4-May-08 4:31
Daniel Grunwald4-May-08 4:31 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 4:36
George_George4-May-08 4:36 
GeneralRe: compile time error or runtime error? Pin
Daniel Grunwald4-May-08 4:56
Daniel Grunwald4-May-08 4:56 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 18:33
George_George4-May-08 18:33 
GeneralRe: compile time error or runtime error? Examples Pin
Daniel Grunwald4-May-08 5:03
Daniel Grunwald4-May-08 5:03 
GeneralRe: compile time error or runtime error? Examples Pin
George_George4-May-08 18:38
George_George4-May-08 18:38 
GeneralRe: compile time error or runtime error? Pin
#realJSOP4-May-08 6:40
mve#realJSOP4-May-08 6:40 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 18:41
George_George4-May-08 18:41 
GeneralRe: compile time error or runtime error? Pin
#realJSOP5-May-08 2:47
mve#realJSOP5-May-08 2:47 
GeneralRe: compile time error or runtime error? Pin
Guffa5-May-08 10:33
Guffa5-May-08 10:33 
GeneralRe: compile time error or runtime error? Pin
George_George7-May-08 1:29
George_George7-May-08 1:29 
AnswerRe: compile time error or runtime error? Pin
Charith Jayasundara4-May-08 8:04
Charith Jayasundara4-May-08 8:04 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 18:46
George_George4-May-08 18:46 
QuestionNumbers Don't Display According To The Current Culture! Pin
WaleedH3-May-08 23:21
WaleedH3-May-08 23:21 

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.