Click here to Skip to main content
15,909,896 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hex Strings to Integer Pin
musefan19-May-09 5:10
musefan19-May-09 5:10 
GeneralRe: Hex Strings to Integer Pin
Nagy Vilmos19-May-09 5:13
professionalNagy Vilmos19-May-09 5:13 
GeneralRe: Hex Strings to Integer Pin
musefan19-May-09 5:28
musefan19-May-09 5:28 
QuestionHelp! implementing user session timeout in winform c#2.0 Pin
highjo19-May-09 4:03
highjo19-May-09 4:03 
AnswerRe: Help! implementing user session timeout in winform c#2.0 Pin
Noctris19-May-09 6:38
Noctris19-May-09 6:38 
GeneralRe: Help! implementing user session timeout in winform c#2.0 Pin
highjo21-May-09 1:13
highjo21-May-09 1:13 
QuestionC# Question time! Pin
Matt Cavanagh19-May-09 3:44
Matt Cavanagh19-May-09 3:44 
AnswerRe: C# Question time! Pin
molesworth19-May-09 3:51
molesworth19-May-09 3:51 
They're probably basing it on the relative "cost" of each. Throwing an exception can take a very long time - much longer than boxing or unboxing.

Still, if you want to get pedantic, you can say that a lot of boxing/unboxing will give a greater slow down than one exception, and you should only use exceptions in "exceptional circumstances" where it's likely the program won't be able to continue anyway.

Come to that, if you really want to optimise things, you should avoid using interfaces, iterators, properties, and a load of other C# features as well, since they're expensive at run time... Smile | :)

There are three kinds of people in the world - those who can count and those who can't...

GeneralRe: C# Question time! Pin
OriginalGriff19-May-09 4:43
mveOriginalGriff19-May-09 4:43 
GeneralRe: C# Question time! Pin
molesworth19-May-09 4:49
molesworth19-May-09 4:49 
GeneralRe: C# Question time! Pin
Nagy Vilmos19-May-09 5:00
professionalNagy Vilmos19-May-09 5:00 
GeneralRe: C# Question time! Pin
harold aptroot19-May-09 5:16
harold aptroot19-May-09 5:16 
GeneralRe: C# Question time! Pin
molesworth19-May-09 5:36
molesworth19-May-09 5:36 
AnswerRe: C# Question time! Pin
musefan19-May-09 3:54
musefan19-May-09 3:54 
GeneralRe: C# Question time! Pin
Matt Cavanagh19-May-09 11:44
Matt Cavanagh19-May-09 11:44 
AnswerRe: C# Question time! Pin
PIEBALDconsult19-May-09 4:10
mvePIEBALDconsult19-May-09 4:10 
AnswerRe: C# Question time! Pin
harold aptroot19-May-09 4:33
harold aptroot19-May-09 4:33 
QuestionChecking if app is running under a Admin account in XP Pin
Brad Wick19-May-09 3:20
Brad Wick19-May-09 3:20 
AnswerRe: Checking if app is running under a Admin account in XP Pin
Luc Pattyn19-May-09 4:57
sitebuilderLuc Pattyn19-May-09 4:57 
QuestionProblem with SetupProject Pin
maf66619-May-09 3:09
maf66619-May-09 3:09 
QuestionRe: Problem with SetupProject Pin
maf66619-May-09 22:17
maf66619-May-09 22:17 
QuestionRe: Problem with SetupProject Pin
maf66624-May-09 7:08
maf66624-May-09 7:08 
QuestionStatic class info across multiple application instances? Pin
Jacobus0119-May-09 2:25
Jacobus0119-May-09 2:25 
AnswerRe: Static class info across multiple application instances? Pin
Luc Pattyn19-May-09 2:35
sitebuilderLuc Pattyn19-May-09 2:35 
GeneralRe: Static class info across multiple application instances? Pin
Jacobus0119-May-09 2:47
Jacobus0119-May-09 2:47 

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.