Code inspection: Unused type parameter
This inspection reports a generic type parameter that is declared but never used in the type body, member signatures, constraints, or implemented interfaces. Keeping it makes the API more complicated than necessary.
Example
using System; class C<T, U> : Attribute where T : IDisposable
{
}
using System; class C : Attribute
{
}
Quick-fix
The quick-fix removes the unused type parameter.
13 April 2026