21.2 Enum modifiers

An enum-declaration may optionally include a sequence of enum modifiers:
enum-modifiers:
enum-modifier
enum-modifiers enum-modifier
C# LANGUAGE SPECIFICATION
294
enum-modifier:
new
public
protected
internal
private
It is a compile-time error for the same modifier to appear multiple times in
an enum declaration.
The modifiers of an enum declaration have the same meaning as those of a
class declaration (§17.1.1).
However, the abstract and sealed modifiers are not permitted in an enum
declaration. Enums cannot be
abstract and do not permit derivation.

你可能感兴趣的:(c#/c++)