title: How to determine whether object reference is null?
body: <p>What is the best way to determine whether an object reference variable is <code>null</code>?</p>
  
  <p>Is it the following?</p>
  
  <pre><code>MyObject myObjVar = null;
  if (myObjVar == null)
  {
      // do stuff
  }
  </code></pre>