Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need to display bytes received/sent information in C# Pin
TeeAii8-May-08 19:31
TeeAii8-May-08 19:31 
GeneralSql replace ... Pin
Burim Rama6-May-08 21:30
Burim Rama6-May-08 21:30 
GeneralRe: Sql replace ... Pin
Christian Graus6-May-08 21:40
protectorChristian Graus6-May-08 21:40 
QuestionProcess Pin
ellllllllie6-May-08 21:18
ellllllllie6-May-08 21:18 
AnswerRe: Process Pin
MarkB7776-May-08 21:29
MarkB7776-May-08 21:29 
AnswerRe: Process Pin
Reelix6-May-08 21:38
Reelix6-May-08 21:38 
AnswerRe: Process Pin
vytheese7-May-08 2:16
professionalvytheese7-May-08 2:16 
AnswerRe: Process Pin
Spacix One7-May-08 3:42
Spacix One7-May-08 3:42 
Questionhow to change the tab form? Pin
jroldankhoury6-May-08 21:05
jroldankhoury6-May-08 21:05 
AnswerRe: how to change the tab form? Pin
Christian Graus6-May-08 21:41
protectorChristian Graus6-May-08 21:41 
GeneralRe: how to change the tab form? Pin
jroldankhoury6-May-08 23:26
jroldankhoury6-May-08 23:26 
GeneralRe: how to change the tab form? Pin
Spacix One7-May-08 3:12
Spacix One7-May-08 3:12 
QuestionHow to use Background worker to perform job asynchronously? Pin
cocoonwls6-May-08 20:49
cocoonwls6-May-08 20:49 
AnswerRe: How to use Background worker to perform job asynchronously? Pin
N a v a n e e t h6-May-08 21:11
N a v a n e e t h6-May-08 21:11 
AnswerRe: How to use Background worker to perform job asynchronously? Pin
Christian Graus6-May-08 21:42
protectorChristian Graus6-May-08 21:42 
GeneralRe: How to use Background worker to perform job asynchronously? Pin
cocoonwls6-May-08 22:03
cocoonwls6-May-08 22:03 
GeneralRe: How to use Background worker to perform job asynchronously? Pin
Christian Graus6-May-08 22:18
protectorChristian Graus6-May-08 22:18 
QuestionWhich is best (obj != null) or ( obj == null) ? Pin
vytheese6-May-08 20:45
professionalvytheese6-May-08 20:45 
AnswerRe: Which is best (obj != null) or ( obj == null) ? Pin
Vasudevan Deepak Kumar6-May-08 20:47
Vasudevan Deepak Kumar6-May-08 20:47 
AnswerRe: Which is best (obj != null) or ( obj == null) ? Pin
MarkB7776-May-08 21:26
MarkB7776-May-08 21:26 
AnswerRe: Which is best (obj != null) or ( obj == null) ? Pin
Colin Angus Mackay6-May-08 21:32
Colin Angus Mackay6-May-08 21:32 
vytheese wrote:
In above which will execute faster. == or !=


Considering that your PC probably runs at 2+ billion clock cycles per second, and such an operation is so trivial compared to other instructions that could be issued, does it really matter? Seriously, the jump that's going to happen after the conditional check is going to cost more than the check because of the way processor pipelining works. And the jump is going to happen regardless of the type of check you are performing.

In short you are over optimising.

Finally, just so you get your question answered - They cost the same in terms of processor cycles.

Upcoming FREE developer events:
* Developer Day Scotland

Recent blog posts:
* Introduction to LINQ to XML (Part 1) - (Part 2)

My website | Blog

GeneralRe: Which is best (obj != null) or ( obj == null) ? Pin
Reelix6-May-08 22:19
Reelix6-May-08 22:19 
GeneralRe: Which is best (obj != null) or ( obj == null) ? Pin
vytheese6-May-08 22:30
professionalvytheese6-May-08 22:30 
QuestionHow can I read data from printer port before printing based on printer port in C# Pin
Krishna Prasad RVS6-May-08 20:39
Krishna Prasad RVS6-May-08 20:39 
AnswerRe: How can I read data from printer port before printing based on printer port in C# Pin
Christian Graus6-May-08 21:43
protectorChristian Graus6-May-08 21:43 

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.