Click here to Skip to main content
15,888,113 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Empty Catch Pin
Guffa25-Sep-07 10:21
Guffa25-Sep-07 10:21 
QuestionDevelop Outlook in C# Windows forms Pin
senselva24-Sep-07 21:58
senselva24-Sep-07 21:58 
AnswerRe: Develop Outlook in C# Windows forms Pin
Corinna John25-Sep-07 0:56
Corinna John25-Sep-07 0:56 
QuestionGoogle Suggest feature with ASP.NET 2.0 Pin
jebin k24-Sep-07 20:39
jebin k24-Sep-07 20:39 
AnswerRe: Google Suggest feature with ASP.NET 2.0 Pin
dengboo24-Sep-07 20:48
dengboo24-Sep-07 20:48 
GeneralRe: Google Suggest feature with ASP.NET 2.0 Pin
jebin k25-Sep-07 1:25
jebin k25-Sep-07 1:25 
QuestionReportingService.GetReportParameters Pin
amraouf24-Sep-07 20:18
amraouf24-Sep-07 20:18 
AnswerRe: ReportingService.GetReportParameters Pin
pmarfleet24-Sep-07 21:35
pmarfleet24-Sep-07 21:35 
GeneralRe: ReportingService.GetReportParameters Pin
amraouf24-Sep-07 21:52
amraouf24-Sep-07 21:52 
GeneralRe: ReportingService.GetReportParameters Pin
pmarfleet24-Sep-07 22:11
pmarfleet24-Sep-07 22:11 
Questioncode for reading afile from the folder on c# Pin
ramyanaidu24-Sep-07 20:08
ramyanaidu24-Sep-07 20:08 
AnswerRe: code for reading afile from the folder on c# Pin
Paras Kaneriya24-Sep-07 20:18
Paras Kaneriya24-Sep-07 20:18 
AnswerRe: code for reading afile from the folder on c# Pin
Christian Graus24-Sep-07 20:21
protectorChristian Graus24-Sep-07 20:21 
QuestionApplication installation giving problem Pin
Maddie from Dartford24-Sep-07 19:51
Maddie from Dartford24-Sep-07 19:51 

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.