An enumeration declaration contains the var keyword, but variable declarations are not allowed within an enumeration declaration.
To correct this error
-
Remove the var keyword or the variable declaration.
See Also
Reference
enum Statementvar Statement