That all depends on what kind of errors you have in your code.
Noting, of course, that there's no such thing as "C# 3.5sp1". There's
only "C# 1.0", "C# 2.0", "C# 3.0", and "C# 4.0". Perhaps you meant
".NET 3.5 SP1"?
Uh, yea. Sorry. I was just wondering because I thought I saw somewhere that
the C# compiler would show runtime errors before the code was compiled and
put them in the errors list. Or maybe it was after the code was compiled?
Either way it goes, how do you actually do this?
Uh, yea. Sorry. I was just wondering because I thought I saw somewhere that
the C# compiler would show runtime errors before the code was compiled and
put them in the errors list. Or maybe it was after the code was compiled?
Either way it goes, how do you actually do this?
By definition, the compiler will show you compile-time errors only.
Many compile-time errors are designed to prevent run-time errors, but
they aren't run-time errors per se. They are still compile-time errors.
You've either misunderstood something someone wrote, or someone wrote
something that doesn't make sense.
Of course, _after_ the code is compiled, you can run your program. At
which time, the debugger will alert you to run-time errors (i.e.
exceptions…typically NullReferenceException and InvalidCastException,
those being the most common run-time issues you'd run into as far as
coding errors go).
Pete
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.