Dupe: Null Difference
Throughout my life, I came across an article that explained that the following were not equal (in C #):
if (o == null) {} if (null == o) {}
The article explains that the latter was preferable because it led to a more accurate test. Since then I have been coding this way. Now that I understand much more, I was looking for an article or something similar to find out what the exact data was, but I can not find anything on this.
Thoughts? Is there any difference? A first glance would say no. But who knows what happens in the bowels of IL and C # compilation.
source share