Compiler Error CS1675
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Compiler Error CS1675 

Error Message

Enums cannot have type parameters

To resolve this error, remove the type parameter from the enum declaration.

Example

The following sample generates CS1675:

// CS1675.cs
enum E<T>  // CS1675
{
}

class CMain
{
    public static void Main()
    {
    }
}
Show:
© 2016 Microsoft