title: When to use !() or != when if not null
body: <p>Whilst refactoring code I changed the all the if not null conditions to follow the majority convention in my code of</p>
  
  <pre><code>if (!(foo == null))
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>if (foo != null)
  </code></pre>
  
  <p>Is there any advantage in either statement?</p>
  
  <p>Is there any advantage in either statement in c#?</p>