Click here to Skip to main content
15,923,168 members
Home / Discussions / C#
   

C#

 
GeneralRe: A Question about List in C# Pin
Tej Aj28-Mar-10 23:45
Tej Aj28-Mar-10 23:45 
AnswerRe: A Question about List in C# Pin
PSK_28-Mar-10 21:41
PSK_28-Mar-10 21:41 
GeneralRe: A Question about List in C# Pin
Pete O'Hanlon28-Mar-10 21:47
mvePete O'Hanlon28-Mar-10 21:47 
GeneralRe: A Question about List in C# Pin
PSK_28-Mar-10 22:44
PSK_28-Mar-10 22:44 
AnswerRe: A Question about List in C# Pin
V.28-Mar-10 23:50
professionalV.28-Mar-10 23:50 
AnswerRe: A Question about List in C# Pin
Bernhard Hiller30-Mar-10 21:35
Bernhard Hiller30-Mar-10 21:35 
QuestionMicrophone to nokia mobile communication Pin
mmdullah28-Mar-10 18:15
mmdullah28-Mar-10 18:15 
AnswerRe: Microphone to nokia mobile communication Pin
Mycroft Holmes28-Mar-10 19:38
professionalMycroft Holmes28-Mar-10 19:38 
AnswerRe: Microphone to nokia mobile communication Pin
V.28-Mar-10 20:19
professionalV.28-Mar-10 20:19 
Questionwant to create a popup window to show message on program start Pin
Alok Sharma ji28-Mar-10 15:54
Alok Sharma ji28-Mar-10 15:54 
AnswerRe: want to create a popup window to show message on program start Pin
Not Active28-Mar-10 17:13
mentorNot Active28-Mar-10 17:13 
AnswerRe: want to create a popup window to show message on program start Pin
Mycroft Holmes28-Mar-10 19:40
professionalMycroft Holmes28-Mar-10 19:40 
Questionany solutions? Pin
95ulisse28-Mar-10 4:40
95ulisse28-Mar-10 4:40 
AnswerRe: any solutions? Pin
Dan Mos28-Mar-10 4:58
Dan Mos28-Mar-10 4:58 
GeneralRe: any solutions? Pin
95ulisse29-Mar-10 3:07
95ulisse29-Mar-10 3:07 
AnswerDon't ask the same question again Pin
Not Active28-Mar-10 5:57
mentorNot Active28-Mar-10 5:57 
Questionwhere to put try catch block! Pin
Hussam Fattahi28-Mar-10 4:23
Hussam Fattahi28-Mar-10 4:23 
AnswerRe: wher to put try catch block! Pin
DaveyM6928-Mar-10 4:34
professionalDaveyM6928-Mar-10 4:34 
GeneralRe: wher to put try catch block! Pin
Hussam Fattahi28-Mar-10 4:54
Hussam Fattahi28-Mar-10 4:54 
GeneralRe: wher to put try catch block! Pin
DaveyM6928-Mar-10 5:07
professionalDaveyM6928-Mar-10 5:07 
GeneralRe: wher to put try catch block! Pin
Hussam Fattahi28-Mar-10 5:15
Hussam Fattahi28-Mar-10 5:15 
AnswerRe: wher to put try catch block! Pin
Eddy Vluggen28-Mar-10 4:39
professionalEddy Vluggen28-Mar-10 4:39 
GeneralRe: wher to put try catch block! Pin
Hussam Fattahi28-Mar-10 4:56
Hussam Fattahi28-Mar-10 4:56 
AnswerRe: where to put try catch block! Pin
Richard MacCutchan28-Mar-10 4:40
mveRichard MacCutchan28-Mar-10 4:40 
The answer, of course, is it depends on many factors.
In your first option the Save() method should take some action if it catches an exception and then return a status to its calling method to tell it whether the function succeeded or not. However, in the second sample the calling method is expected to understand an SQL exception, whereas it should really only be expected to handle "Save exceptions". So in this case sample one is probably the better choice.
txtspeak is the realm of 9 year old children, not developers. Christian Graus

GeneralRe: where to put try catch block! Pin
Hussam Fattahi28-Mar-10 4:52
Hussam Fattahi28-Mar-10 4:52 

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.