Click here to Skip to main content
15,889,863 members
Home / Discussions / C#
   

C#

 
QuestionApplication Settings. How to iterate ? Pin
davebarkshire26-May-09 6:48
davebarkshire26-May-09 6:48 
AnswerRe: Application Settings. How to iterate ? Pin
Alan N26-May-09 11:07
Alan N26-May-09 11:07 
AnswerRe: Application Settings. How to iterate ? Pin
davebarkshire27-May-09 0:22
davebarkshire27-May-09 0:22 
QuestionC# multiple catch blocks Pin
proganon26-May-09 6:34
proganon26-May-09 6:34 
AnswerRe: C# multiple catch blocks Pin
Luc Pattyn26-May-09 6:44
sitebuilderLuc Pattyn26-May-09 6:44 
GeneralRe: C# multiple catch blocks Pin
proganon26-May-09 7:24
proganon26-May-09 7:24 
AnswerRe: C# multiple catch blocks Pin
Vikram A Punathambekar26-May-09 7:53
Vikram A Punathambekar26-May-09 7:53 
AnswerRe: C# multiple catch blocks Pin
Pete O'Hanlon26-May-09 11:34
mvePete O'Hanlon26-May-09 11:34 
proganon wrote:
Is there any purpose for using multiple (specific) catch blocks if all exceptions will be handled the same way?


Yes. This provides the ability to handle specific exceptions in a sensible fashion - for instance, you might have a bit of code that updates a database, and the SQL Connection terminates unexpectedly during the operation - you might want to attempt the update again (having reopened the connection). If you get a different type of exception, you probably wouldn't want to attempt the update again.

There's just one example of doing this.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



QuestionMy Project gives an error out of VS... How can I debug? Pin
SimpleData26-May-09 6:08
SimpleData26-May-09 6:08 
AnswerRe: My Project gives an error out of VS... How can I debug? Pin
OriginalGriff26-May-09 6:15
mveOriginalGriff26-May-09 6:15 
GeneralRe: My Project gives an error out of VS... How can I debug? Pin
SimpleData26-May-09 6:16
SimpleData26-May-09 6:16 
GeneralRe: My Project gives an error out of VS... How can I debug? Pin
SimpleData26-May-09 6:36
SimpleData26-May-09 6:36 
GeneralRe: My Project gives an error out of VS... How can I debug? Pin
Luc Pattyn26-May-09 6:50
sitebuilderLuc Pattyn26-May-09 6:50 
AnswerRe: My Project gives an error out of VS... How can I debug? Pin
0x3c026-May-09 6:34
0x3c026-May-09 6:34 
Questionhow to display default image in datagridview in c#.net 3.5 Win Forms? Pin
Narendra Reddy Vajrala26-May-09 5:43
Narendra Reddy Vajrala26-May-09 5:43 
AnswerRe: how to display default image in datagridview in c#.net 3.5 Win Forms? Pin
Henry Minute26-May-09 12:52
Henry Minute26-May-09 12:52 
Questionan array question [modified] Pin
bluetx26-May-09 5:05
bluetx26-May-09 5:05 
AnswerRe: an array question Pin
Ennis Ray Lynch, Jr.26-May-09 5:12
Ennis Ray Lynch, Jr.26-May-09 5:12 
GeneralRe: an array question Pin
bluetx26-May-09 5:14
bluetx26-May-09 5:14 
GeneralRe: an array question Pin
harold aptroot26-May-09 5:16
harold aptroot26-May-09 5:16 
GeneralRe: an array question Pin
Ennis Ray Lynch, Jr.26-May-09 5:22
Ennis Ray Lynch, Jr.26-May-09 5:22 
GeneralRe: an array question Pin
OriginalGriff26-May-09 6:14
mveOriginalGriff26-May-09 6:14 
AnswerRe: an array question Pin
tom57200726-May-09 5:15
tom57200726-May-09 5:15 
GeneralRe: an array question Pin
bluetx26-May-09 5:20
bluetx26-May-09 5:20 
GeneralRe: an array question Pin
EliottA26-May-09 5:25
EliottA26-May-09 5:25 

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.