Type parameters that aren’t used are dead code, which can only distract and possibly confuse developers during maintenance. Therefore, unused type
parameters should be removed.
Noncompliant code example
int <T> Add(int a, int b) // Noncompliant; <T> is ignored
{
return a + b;
}
Compliant solution
int Add(int a, int b)
{
return a + b;
}