title: Can't compare T value1 with T value2 = default(T). Why and how to do that on C#?
body: <p>I'm trying the following:</p>
  
  <pre><code>T value1 = el.value; // it's of type T already
  T value2 = default(T);
  if (value1 != value2) // gives the following error: Operator '!=' cannot be applied to operands of type 'T' and 'T'
  {
      // ...
  }
  </code></pre>
  
  <p>So, how could I compare both values? And why do this error occur?</p>
  
  <p>Thanks in advance!</p>