Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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()
{
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.