CA1005: Avoid excessive parameters on generic types
Visual Studio 2010
TypeName | AvoidExcessiveParametersOnGenericTypes |
CheckId | CA1005 |
Category | Microsoft.Design |
Breaking Change | Breaking |
The more type parameters a generic type contains, the more difficult it is to know and remember what each type parameter represents. It is usually obvious with one type parameter, as in List<T>, and in certain cases with two type parameters, as in Dictionary<TKey, TValue>. If more than two type parameters exist, the difficulty becomes too great for most users (for example, TooManyTypeParameters<T, K, V> in C# or TooManyTypeParameters(Of T, K, V) in Visual Basic).