Я пробую следующее:
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'
{
// ...
}
Итак, как мне сравнить оба значения ? И почему возникает эта ошибка?
Заранее спасибо!