关闭

21.2 Enum modifiers

760人阅读 评论(0) 收藏 举报
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.
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:566074次
    • 积分:11486
    • 等级:
    • 排名:第1344名
    • 原创:565篇
    • 转载:0篇
    • 译文:0篇
    • 评论:50条
    文章分类