Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
AnswerRe: Changing ForeColor Item in ListBox ... Pin
Luc Pattyn2-Dec-11 4:06
sitebuilderLuc Pattyn2-Dec-11 4:06 
AnswerRe: Changing ForeColor Item in ListBox ... Pin
BobJanova2-Dec-11 5:46
BobJanova2-Dec-11 5:46 
QuestionWhat should be the Return Type? Pin
AmbiguousName1-Dec-11 23:40
AmbiguousName1-Dec-11 23:40 
AnswerRe: What should be the Return Type? Pin
BobJanova1-Dec-11 23:55
BobJanova1-Dec-11 23:55 
GeneralRe: What should be the Return Type? Pin
AmbiguousName2-Dec-11 0:22
AmbiguousName2-Dec-11 0:22 
AnswerRe: What should be the Return Type? Pin
Dan Mos2-Dec-11 0:54
Dan Mos2-Dec-11 0:54 
GeneralRe: What should be the Return Type? Pin
BobJanova2-Dec-11 5:44
BobJanova2-Dec-11 5:44 
AnswerRe: What should be the Return Type? Pin
Rob Philpott2-Dec-11 1:07
Rob Philpott2-Dec-11 1:07 
I'd say do nothing, unless you want to do some custom exception handling in your function. Exceptions are for exceptional circumstances and in my mind there's always been little point in catching an exception just to rethrow it. The error message in an exception is often useless without the stack trace as well.

It's up to the *calling function* to decide what to do in the event of an error, so it may handle the exception there or let it pass further up the call stack.

In particular stuff like this
try
{
}
catch (Exception ex)
{
    throw ex;
}


is pointless and bad as you'll lose the stack trace.
Regards,
Rob Philpott.

GeneralRe: What should be the Return Type? Pin
BobJanova2-Dec-11 5:45
BobJanova2-Dec-11 5:45 
GeneralRe: What should be the Return Type? Pin
Rob Philpott2-Dec-11 5:50
Rob Philpott2-Dec-11 5:50 
AnswerRe: What should be the Return Type? Pin
PIEBALDconsult2-Dec-11 2:08
mvePIEBALDconsult2-Dec-11 2:08 
GeneralRe: What should be the Return Type? Pin
Eddy Vluggen2-Dec-11 7:30
professionalEddy Vluggen2-Dec-11 7:30 
QuestionComponent Versioning and the CLR Pin
Richard Andrew x641-Dec-11 16:43
professionalRichard Andrew x641-Dec-11 16:43 
AnswerRe: Component Versioning and the CLR Pin
Not Active1-Dec-11 17:18
mentorNot Active1-Dec-11 17:18 
GeneralRe: Component Versioning and the CLR Pin
Richard Andrew x641-Dec-11 17:21
professionalRichard Andrew x641-Dec-11 17:21 
GeneralRe: Component Versioning and the CLR Pin
Rob Philpott2-Dec-11 2:46
Rob Philpott2-Dec-11 2:46 
QuestionC# Sockets Pin
Sautin.net1-Dec-11 7:48
Sautin.net1-Dec-11 7:48 
AnswerRe: C# Sockets Pin
Addy Tas1-Dec-11 12:45
Addy Tas1-Dec-11 12:45 
AnswerRe: C# Sockets Pin
jschell1-Dec-11 13:39
jschell1-Dec-11 13:39 
AnswerRe: C# Sockets Pin
Jitendra Parida - Jeetu1-Dec-11 21:41
Jitendra Parida - Jeetu1-Dec-11 21:41 
AnswerRe: C# Sockets Pin
BobJanova1-Dec-11 23:52
BobJanova1-Dec-11 23:52 
AnswerRe: C# Sockets (Solved) Pin
Sautin.net2-Dec-11 9:33
Sautin.net2-Dec-11 9:33 
QuestionPrinting in C# on Thermal Printer Pin
vijay.victory1-Dec-11 6:26
vijay.victory1-Dec-11 6:26 
AnswerRe: Printing in C# on Thermal Printer Pin
Dan Mos1-Dec-11 6:43
Dan Mos1-Dec-11 6:43 
GeneralRe: Printing in C# on Thermal Printer Pin
vijay.victory1-Dec-11 7:07
vijay.victory1-Dec-11 7:07 

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.