title: Is it safe to check an object for null and in the same if-statement compare the object's property value?
body: <p>See thread title. Can I safely do something like that without worrying about a <code>NullReferenceException</code>, or is not guaranteed that those boolean expressions will be evaluated left to right?</p>
  
  <pre><code>// can this throw an NRE?
  if (obj == null || obj.property == value)
  {
     // do something
  }
  </code></pre>