Click here to Skip to main content
15,879,239 members
Home / Discussions / C#
   

C#

 
AnswerRe: schedulling Pin
Robert Rohde20-Apr-06 22:44
Robert Rohde20-Apr-06 22:44 
QuestionCheck box in a Listview column header possible? Pin
Diana Fernandez20-Apr-06 17:59
Diana Fernandez20-Apr-06 17:59 
AnswerRe: Check box in a Listview column header possible? Pin
gubber21-Apr-06 3:16
gubber21-Apr-06 3:16 
Questiongetting hyperlink Pin
genx_code20-Apr-06 17:16
genx_code20-Apr-06 17:16 
AnswerRe: getting hyperlink Pin
Robert Rohde20-Apr-06 22:46
Robert Rohde20-Apr-06 22:46 
QuestionUsing PropertyGrid and Collection Editor Pin
JuanAlbertoMD20-Apr-06 11:29
JuanAlbertoMD20-Apr-06 11:29 
AnswerRe: Using PropertyGrid and Collection Editor Pin
Robert Rohde20-Apr-06 22:50
Robert Rohde20-Apr-06 22:50 
QuestionBoolean Optimization Pin
Drew McGhie20-Apr-06 11:27
Drew McGhie20-Apr-06 11:27 
I'm trying to optimize some code that I've written and I've come across a style that I use ~20 or times that will be run ~100 or so times during the full execution of my code(a VSTO excel spreadsheet).

Here's the common syntax

If (complicated boolean statement)
{
    form.attribute = true;
}
else
{
    form.attribute = false;
}


I was wondering whether using something like this would make any difference
form.attribute = complicated boolean statement.


Could eliminating the if/else actually noticably speed up my code, or is this change so insignificant that I shoul concentrate on some of the other pieces of code to eliminate database calls and recomputation when it isn't necessary?
AnswerRe: Boolean Optimization Pin
User 665820-Apr-06 11:51
User 665820-Apr-06 11:51 
AnswerRe: Boolean Optimization Pin
Guffa20-Apr-06 11:58
Guffa20-Apr-06 11:58 
QuestionThreads and ProgressBar Pin
achrafus20-Apr-06 11:01
achrafus20-Apr-06 11:01 
AnswerRe: Threads and ProgressBar Pin
Ed.Poore20-Apr-06 12:13
Ed.Poore20-Apr-06 12:13 
AnswerRe: Threads and ProgressBar Pin
mikanu20-Apr-06 18:03
mikanu20-Apr-06 18:03 
Questionhow set a orginate time of Unix timpstamp value?? Pin
Real Coder20-Apr-06 10:05
Real Coder20-Apr-06 10:05 
Questionhow to save some file path in sql server 2000? Pin
nomsnoms20-Apr-06 9:23
nomsnoms20-Apr-06 9:23 
GeneralRe: how to save some file path in sql server 2000? Pin
Guffa20-Apr-06 9:34
Guffa20-Apr-06 9:34 
QuestionD3D device problem - DirectX Pin
victor_ba8520-Apr-06 8:41
victor_ba8520-Apr-06 8:41 
AnswerRe: D3D device problem - DirectX Pin
Judah Gabriel Himango20-Apr-06 12:43
sponsorJudah Gabriel Himango20-Apr-06 12:43 
QuestionHELP! I'm stuck! Access credentials for network share Pin
chrisk7720-Apr-06 8:38
chrisk7720-Apr-06 8:38 
QuestionImporting MS Access Report in Crystal Reports XI Pin
Code Toad20-Apr-06 8:06
Code Toad20-Apr-06 8:06 
Questionprinting in a right-to-left language Pin
Green Fuze20-Apr-06 7:14
Green Fuze20-Apr-06 7:14 
QuestionInvert Bitmap Pin
sergestusxx20-Apr-06 7:11
sergestusxx20-Apr-06 7:11 
AnswerRe: Invert Bitmap Pin
LongRange.Shooter20-Apr-06 7:42
LongRange.Shooter20-Apr-06 7:42 
AnswerRe: Invert Bitmap Pin
Josh Smith20-Apr-06 7:44
Josh Smith20-Apr-06 7:44 
AnswerRe: Invert Bitmap Pin
Guffa20-Apr-06 8:07
Guffa20-Apr-06 8: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.