Click here to Skip to main content
15,904,497 members
Home / Discussions / C#
   

C#

 
GeneralRe: Huh? Can this be logical? Pin
Christian Graus31-Aug-04 12:17
protectorChristian Graus31-Aug-04 12:17 
GeneralRe: Huh? Can this be logical? Pin
Heath Stewart31-Aug-04 12:23
protectorHeath Stewart31-Aug-04 12:23 
GeneralRe: Huh? Can this be logical? Pin
Christian Graus1-Sep-04 10:51
protectorChristian Graus1-Sep-04 10:51 
GeneralRe: Huh? Can this be logical? Pin
Jerry Hammond31-Aug-04 11:45
Jerry Hammond31-Aug-04 11:45 
GeneralRe: Huh? Can this be logical? Pin
Heath Stewart31-Aug-04 11:52
protectorHeath Stewart31-Aug-04 11:52 
GeneralRe: Huh? Can this be logical? Pin
Christian Graus31-Aug-04 12:19
protectorChristian Graus31-Aug-04 12:19 
GeneralRe: Huh? Can this be logical? Pin
Jerry Hammond31-Aug-04 14:18
Jerry Hammond31-Aug-04 14:18 
AnswerRe: Huh? Can this be logical? Pin
Heath Stewart31-Aug-04 6:44
protectorHeath Stewart31-Aug-04 6:44 
To expand on what Steven said, the two are the same because it's a simple comparison. The IL generated from about would be:
ldnull
ldfld email
beq Equal // If the two are equal skip the if block
// if block runs here
Equal:
// After the if block
It doesn't matter if you load null or the field (or variable, whichever) first, you're still comparing the value of two objects.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
AnswerRe: Huh? Can this be logical? Pin
Jerry Hammond31-Aug-04 6:52
Jerry Hammond31-Aug-04 6:52 
GeneralRe: Huh? Can this be logical? Pin
Jerry Hammond31-Aug-04 8:43
Jerry Hammond31-Aug-04 8:43 
AnswerRe: Huh? Can this be logical? Pin
Eric Gunnerson (msft)1-Sep-04 12:45
Eric Gunnerson (msft)1-Sep-04 12:45 
GeneralLogging asynchronously Pin
Michel Rainville31-Aug-04 6:22
Michel Rainville31-Aug-04 6:22 
GeneralRe: Logging asynchronously Pin
Heath Stewart31-Aug-04 6:55
protectorHeath Stewart31-Aug-04 6:55 
GeneralRe: Logging asynchronously Pin
Daniel3000i31-Aug-04 8:00
Daniel3000i31-Aug-04 8:00 
GeneralRe: Logging asynchronously Pin
Michel Rainville31-Aug-04 10:08
Michel Rainville31-Aug-04 10:08 
GeneralRe: Logging asynchronously Pin
Daniel3000i31-Aug-04 11:16
Daniel3000i31-Aug-04 11:16 
GeneralWriting Unit Tests Pin
matthias s.31-Aug-04 6:17
matthias s.31-Aug-04 6:17 
GeneralRe: Writing Unit Tests Pin
Steven Campbell31-Aug-04 6:27
Steven Campbell31-Aug-04 6:27 
GeneralRe: Writing Unit Tests Pin
Colin Angus Mackay31-Aug-04 6:41
Colin Angus Mackay31-Aug-04 6:41 
GeneralRe: Writing Unit Tests Pin
Daniel Turini31-Aug-04 6:47
Daniel Turini31-Aug-04 6:47 
QuestionHow to intercept alerts from embedded programs? Pin
Member 129675731-Aug-04 5:57
Member 129675731-Aug-04 5:57 
AnswerRe: How to intercept alerts from embedded programs? Pin
Judah Gabriel Himango31-Aug-04 7:33
sponsorJudah Gabriel Himango31-Aug-04 7:33 
GeneralRe: What is missing? C# Pin
adnanh7531-Aug-04 5:04
adnanh7531-Aug-04 5:04 
GeneralDrag and Drop between two treeviews-drawing a line Pin
Cagatay Bilgin31-Aug-04 4:47
Cagatay Bilgin31-Aug-04 4:47 
GeneralRe: Drag and Drop between two treeviews-drawing a line Pin
LongRange.Shooter1-Sep-04 8:13
LongRange.Shooter1-Sep-04 8:13 

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.