c#关键字和保留字

保留字

78 keywords

key1key2key3key4key5key6key7key8
abstractas
baseboolbreakbyte
casecatchcharcheckedclassconstcontinue
decimaldefaultdelegatedodouble
elseenumeventexplicitextern
falsefinallyfixedfloatforforeach
goto
ifimplicitinintinterfaceinternalis
locklong
namespacenewnull
objectoperatoroutoverride
paramsprivateprotectedpublic
readonlyrefreturn
sbytesealedshortsizeofstackallocstaticstringstruct
thisthrowtruetrytypeof
unitulonguncheckedunsafeushortusingusing static
virtualvoidvolatile
while

值类型关键字

key1key2key3key4
boolbytechardecimal
doubleenumfloatint
longsbyteshortstruct
unitulongushort

引用类型关键字

class, delegate, interface, object, string, void


修饰符关键字

key1key2key3key4key5
publicprivateinternalprotectedabstract
consteventexternnewoverride
partialreadonlysealedstaticunsafe
virtualvolatile

语句关键字

key1key2key3key4key5
ifelseswitchdofor
foreachinwhilebreakcontinue
gotoreturnthrowtrycatch
finallycheckedunchecked

方法参数关键字

params, in, ref, out.


命名空间关键字

namespace, using, extern.


Operator Keywords

as, is, new, sizeof, typeof, true, false, stackalloc


Conversion Keywords

explicit, implicit, operator


Access Keywords

base, this


Literal Keywords

null, default


上下文关键词

30 contextual keywords

key1key2key3key4key5
addaliasascendingasyncawait
by
descendingdynamic
equals
from
getglobalgroup
into
join
let
nameof
onorderby
partial(type)partial(method)
remove
selectset
valuevar
whenwherewhere
yield
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值