Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: Communicating with a child process Pin
TJoe25-Sep-07 2:26
TJoe25-Sep-07 2:26 
QuestionMdi Program Problem Pin
ali_reza_zareian24-Sep-07 23:26
ali_reza_zareian24-Sep-07 23:26 
AnswerRe: Mdi Program Problem Pin
Dave Kreskowiak25-Sep-07 3:45
mveDave Kreskowiak25-Sep-07 3:45 
QuestionBest video format? Pin
DeepOceans24-Sep-07 23:11
DeepOceans24-Sep-07 23:11 
AnswerRe: Best video format? Pin
Paul Conrad26-Sep-07 17:55
professionalPaul Conrad26-Sep-07 17:55 
QuestionArray Construction Help [modified] Pin
Jason Black24-Sep-07 22:59
Jason Black24-Sep-07 22:59 
AnswerRe: Array Construction Help [modified] Pin
Pete O'Hanlon24-Sep-07 23:09
mvePete O'Hanlon24-Sep-07 23:09 
QuestionSave Form screen as jpg-file Pin
anderslundsgard24-Sep-07 22:28
anderslundsgard24-Sep-07 22:28 
AnswerRe: Save Form screen as jpg-file Pin
Martin#24-Sep-07 22:35
Martin#24-Sep-07 22:35 
AnswerRe: Save Form screen as jpg-file Pin
Ajay.k_Singh24-Sep-07 22:57
Ajay.k_Singh24-Sep-07 22:57 
GeneralRe: Save Form screen as jpg-file Pin
anderslundsgard25-Sep-07 0:18
anderslundsgard25-Sep-07 0:18 
GeneralRe: Save Form screen as jpg-file Pin
Ajay.k_Singh25-Sep-07 0:43
Ajay.k_Singh25-Sep-07 0:43 
GeneralRe: Save Form screen as jpg-file Pin
anderslundsgard25-Sep-07 4:47
anderslundsgard25-Sep-07 4:47 
QuestionEquivalent of CStringArray in C# Pin
Mushtaque Nizamani24-Sep-07 22:26
Mushtaque Nizamani24-Sep-07 22:26 
AnswerRe: Equivalent of CStringArray in C# Pin
Martin#24-Sep-07 22:32
Martin#24-Sep-07 22:32 
GeneralRe: Equivalent of CStringArray in C# [modified] Pin
Mushtaque Nizamani24-Sep-07 22:39
Mushtaque Nizamani24-Sep-07 22:39 
QuestionInheritance in C# (class + interface) Pin
kaminem24-Sep-07 22:22
kaminem24-Sep-07 22:22 
AnswerRe: Inheritance in C# (class + interface) Pin
Colin Angus Mackay24-Sep-07 22:55
Colin Angus Mackay24-Sep-07 22:55 
QuestionEmpty Catch Pin
Malcolm Smart24-Sep-07 22:04
Malcolm Smart24-Sep-07 22:04 
AnswerRe: Empty Catch Pin
pmarfleet24-Sep-07 22:16
pmarfleet24-Sep-07 22:16 
GeneralRe: Empty Catch Pin
Malcolm Smart24-Sep-07 22:22
Malcolm Smart24-Sep-07 22:22 
GeneralRe: Empty Catch Pin
Colin Angus Mackay24-Sep-07 22:33
Colin Angus Mackay24-Sep-07 22:33 
Malcolm Smart wrote:
Why would you want to not know what caused a problem?


Generally it is laziness. It is part of the anti-pattern known as try-catch-ignore.

However, there are "good" uses for it. And I put "good" in quotes because it stretches my incredulity a bit.

You could have used it in .NET 1.x before they had things like TryParse on DateTime and int to check if the parse operation completed successfully. You were probably not interested in why it went wrong, just that it did. TryParse just returns a boolean to say if the parsing failed or not.


Upcoming FREE developer events:
* Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ...

My website

GeneralRe: Empty Catch Pin
pmarfleet24-Sep-07 22:35
pmarfleet24-Sep-07 22:35 
AnswerRe: Empty Catch Pin
Guffa24-Sep-07 23:11
Guffa24-Sep-07 23:11 
GeneralRe: Empty Catch Pin
Scott Dorman25-Sep-07 3:59
professionalScott Dorman25-Sep-07 3:59 

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.