title: C# predicate that returns whether a boxed value type is the default for that type
body: <p><strong>Is it possible to create a method that takes a boxed value type and returns whether that value type is equal to the default for that type?</strong></p>
  
  <p>So I want to create a method with the following signature:</p>
  
  <pre><code>bool IsDefault(object boxedValueType);
  </code></pre>
  
  <p>Note: the following code will not work as T gets set to type <code>object</code> so <code>default(T)</code> will always be <code>null</code>.</p>
  
  <pre><code>bool IsDefault&lt;T&gt;(T input)
  {
      return Equals(input, default(T));
  }
  </code></pre>