I\'m trying the following:
T value1 = el.value; // it\'s of type T already T value2 = default(T); if (value1 != value2) // gives the following error: Operato
You can either use a constraint of where T : IEquatable as Henk mentioned, or ignore constraints and use:
where T : IEquatable
if (!EqualityComparer.Default.Equals(value1, value2))