title: How to compare an object to null in c#
body: <p>This seems like it should be really straight forward.</p>
  
  <p>if I have:</p>
  
  <pre><code>object obj = *get value from somewhere*
  
  if(obj == null){
      MessageBox.Show("NULL");
  }
  </code></pre>
  
  <p>Even when I debug and see that obj IS null, the code never goes into the if statement.</p>
  
  <p>Do you have do do something different when comparing an object to null? (because an object can be any type?)</p>