title: How can I check if a generic method parameter is a value type?
body: <p>Is there a way to check if a variable is value type of reference type?</p>
  
  <p>Imagine:</p>
  
  <pre><code>private object GetSomething&lt;T&gt;(params T[] values) 
  {
      foreach (var value in values)
      {
          bool is ValueType; // Check if 'value' is a value type or reference type
      }
  }
  </code></pre>