Click here to Skip to main content
15,888,610 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: VS Designer Integration Pin
Dave Kreskowiak13-Sep-07 6:15
mveDave Kreskowiak13-Sep-07 6:15 
QuestionDoubts regarding Exception Throwing Pin
dreamz648012-Sep-07 22:02
dreamz648012-Sep-07 22:02 
AnswerRe: Doubts regarding Exception Throwing Pin
Pete O'Hanlon12-Sep-07 22:20
mvePete O'Hanlon12-Sep-07 22:20 
GeneralRe: Doubts regarding Exception Throwing Pin
dreamz648013-Sep-07 1:21
dreamz648013-Sep-07 1:21 
GeneralRe: Doubts regarding Exception Throwing Pin
pmarfleet13-Sep-07 1:35
pmarfleet13-Sep-07 1:35 
GeneralRe: Doubts regarding Exception Throwing Pin
Urs Enzler13-Sep-07 1:36
Urs Enzler13-Sep-07 1:36 
GeneralRe: Doubts regarding Exception Throwing Pin
Scott Dorman13-Sep-07 4:25
professionalScott Dorman13-Sep-07 4:25 
AnswerRe: Doubts regarding Exception Throwing Pin
Luc Pattyn13-Sep-07 1:45
sitebuilderLuc Pattyn13-Sep-07 1:45 
Hi,

exceptions are fine in that they allow you to perform a sequence of operations and get
informed automatically if something went wrong in the middle. The main idea is normally
things run fine and an Exception is the exceptional case.

on the other hand you may have a lot of methods whose main purpose is to check something
that may or may not be true. Examples are IsNumeric, TryParse, IsNull, ...
Here the caller expects a pass/fail result, and the probabilities may not be very different;
so the caller does not want the overhead of exceptions, he wants a bool (or possibly
an int or enum as a result code, as in ShowDialog).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Doubts regarding Exception Throwing Pin
dreamz648013-Sep-07 3:51
dreamz648013-Sep-07 3:51 
GeneralRe: Doubts regarding Exception Throwing Pin
Luc Pattyn13-Sep-07 3:55
sitebuilderLuc Pattyn13-Sep-07 3:55 
AnswerRe: Doubts regarding Exception Throwing Pin
PIEBALDconsult18-Sep-07 6:14
mvePIEBALDconsult18-Sep-07 6:14 
AnswerRe: Doubts regarding Exception Throwing Pin
brucedkyle23-Sep-07 12:32
brucedkyle23-Sep-07 12:32 
QuestionURL Behaviour Property Not Found Pin
Nagaraju_Focus12-Sep-07 19:13
Nagaraju_Focus12-Sep-07 19:13 
Question.NET assembly deployment problem Pin
ssanoj12-Sep-07 4:49
ssanoj12-Sep-07 4:49 
AnswerRe: .NET assembly deployment problem Pin
led mike12-Sep-07 5:09
led mike12-Sep-07 5:09 
QuestionCode comments in WSDL Pin
Heine2612-Sep-07 1:11
Heine2612-Sep-07 1:11 
Question32-Bit application runs faster than 64-Bit, any ideas? Pin
Ami Bar11-Sep-07 9:15
Ami Bar11-Sep-07 9:15 
AnswerRe: 32-Bit application runs faster than 64-Bit, any ideas? Pin
Luc Pattyn12-Sep-07 3:11
sitebuilderLuc Pattyn12-Sep-07 3:11 
GeneralRe: 32-Bit application runs faster than 64-Bit, any ideas? Pin
Ami Bar12-Sep-07 5:00
Ami Bar12-Sep-07 5:00 
GeneralRe: 32-Bit application runs faster than 64-Bit, any ideas? Pin
Luc Pattyn12-Sep-07 5:16
sitebuilderLuc Pattyn12-Sep-07 5:16 
GeneralRe: 32-Bit application runs faster than 64-Bit, any ideas? Pin
Ami Bar12-Sep-07 10:54
Ami Bar12-Sep-07 10:54 
QuestionThe newer shutdownTimeout in .NET 2.0 ... Pin
Vasudevan Deepak Kumar11-Sep-07 5:48
Vasudevan Deepak Kumar11-Sep-07 5:48 
GeneralRe: The newer shutdownTimeout in .NET 2.0 ... Pin
Paul Conrad31-Dec-07 9:23
professionalPaul Conrad31-Dec-07 9:23 
QuestionSqlDataAdapter.Fill(DataSet) Pin
liquid_11-Sep-07 3:51
liquid_11-Sep-07 3:51 
QuestionRegister .NET dll for ASP/VB Use Pin
mpavas10-Sep-07 19:40
mpavas10-Sep-07 19:40 

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.