title: Check for null for struct in C# if struct isn't nullable
body: <p>I have some generic method</p>
  
  <pre><code>T SomeMethod(Func&lt;T&gt; func){
     T result = func();
       if (result != null)
         { //.....}
  }
  </code></pre>
  
  <p>It  works good if <code>T</code> is class. But what should I do if <code>T</code> is struct? How can I check if <code>result == default(T)</code> in case if <code>T</code> is <code>struct</code>? </p>
  
  <p>P.S. I don't want to use the constraint <code>where T: class</code> or <code>Nullable</code> types. </p>