Forgot to commit
[mono.git] / mcs / docs / ecma334 / 21.2.xml
1 <?xml version="1.0"?>
2 <clause number="21.2" title="Enum modifiers">
3   <paragraph>An <non_terminal where="21.1">enum-declaration</non_terminal> may optionally include a sequence of enum modifiers: <grammar_production><name><non_terminal where="21.2">enum-modifier</non_terminal>s</name> : <rhs><non_terminal where="21.2">enum-modifier</non_terminal></rhs><rhs><non_terminal where="21.2">enum-modifiers</non_terminal><non_terminal where="21.2">enum-modifier</non_terminal></rhs></grammar_production><grammar_production><name><non_terminal where="21.2">enum-modifier</non_terminal></name> : <rhs><keyword>new</keyword></rhs><rhs><keyword>public</keyword></rhs><rhs><keyword>protected</keyword></rhs><rhs><keyword>internal</keyword></rhs><rhs><keyword>private</keyword></rhs></grammar_production>It is a compile-time error for the same modifier to appear multiple times in an enum declaration. </paragraph>
4   <paragraph>The modifiers of an enum declaration have the same meaning as those of a class declaration (<hyperlink>17.1.1</hyperlink>). Note, however, that the abstract and sealed modifiers are not permitted in an enum declaration. Enums cannot be abstract and do not permit derivation. </paragraph>
5 </clause>