9.4.3 Keywords

博客介绍了关键字的定义,即类似标识符的保留字符序列,除加@字符外不能用作标识符。还列举了众多关键字,如abstract、bool等。此外提到在语法某些地方,特定标识符有特殊意义但非关键字,如属性声明中的.get.和.set.。
9.4.3 Keywords
A keyword is an identifier-like sequence of characters that is reserved, and
cannot be used as an identifier except
when prefaced by the @ character.
Chapter 9 Lexical structure
57
keyword:: one of
abstract as base bool break
byte case catch char checked
class const continue decimal default
delegate do double else enum
event explicit extern false finally
fixed float for foreach goto
if implicit in int interface
internal is lock long namespace
new null object operator out
override params private protected public
readonly ref return sbyte sealed
short sizeof stackalloc static string
struct switch this throw true
try typeof uint ulong unchecked
unsafe ushort using virtual void
volatile while
In some places in the grammar, specific identifiers have special meaning,
but are not keywords. [Note: For
example, within a property declaration, the .get. and .set. identifiers
have special meaning (§17.6.2). An
identifier other than get or set is never permitted in these locations, so
this use does not conflict with a use of
these words as identifiers. end note]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值