Enum types cannot be nullable
The underlying type that is used to declare an enumeration cannot be a nullable value type. For example, the following code causes this error:
'' Not valid.
' Enum exampleEnum As Integer?
' Member declarations.
' End Enum
Error ID: BC32129
- Do not use a nullable value type as the underlying type in an
Enum
declaration.
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.
.NET feedback
.NET is an open source project. Select a link to provide feedback: