9.4.3 Keywords

王朝other·作者佚名  2006-01-10
窄屏简体版  字體: |||超大  

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]

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航