Home > Code Analysis > Code Issues – Unused type parameter

Code Issues – Unused type parameter

February 14th, 2011


This code issue of a dead code type shows type parameters to a generic type, or method definitions that are not referenced within its scope, and can be removed. In a generic type or method definition, a type parameter is a placeholder for a specific type that a client specifies when they instantiate a variable of the generic type. Removing the unused type parameter may improve readability.


CodeRush Unused Type Parameter Sample

How to fix:

  • Remove the unused type parameters:

CodeRush Unused Type Parameter Fix

Products: CodeRush Pro
Versions: 12.1 and up
VS IDEs: any
Updated: Nov/12/2012
ID: C073

Similar Posts: