title: How to test if Action<...> is null?
body: <p>Suppose I have a function that looks like this:</p>
  
  <pre><code>public void DoSomething(Action&lt;object&gt; something)
  {
      something(getObject());
  }
  </code></pre>
  
  <p>If <code>something</code> is null, then this code will raise a NullReferenceException.</p>
  
  <p>However, <code>something == null</code> will not compile, so how do I test <code>something</code> to find out if it is null?</p>