This documentation is archived and is not being maintained.

Compiler Warning (level 3) CS0693 

Error Message

Type parameter 'type parameter' has the same name as the type parameter from outer type 'type'

An inner class type parameter hides the outer class type parameter of the same name. To avoid this situation, use a different name for one of the type parameters.


The following sample generates CS0693.

// CS0693.cs
// compile with: /W:3 /target:library
class Outer<T>
   class Inner<T> {}   // CS0693
   // try the following line instead
   // class Inner<U> {}