Small difference doesnt mean it uses references to compare.And why should it mean something like that?? integer comparisons dont use reference comparisons..
This is just a guess, I'll look into it but I think for integer comparisons, it box the value and then calls Int32.Equals() method. Thats why the difference is not huge. Another reason could be caching and optimization done by CLR since none of those variables hasnt change.
Anyway, if you compare my first and third examples, I think it is very clear..
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
|