保留字
78 keywords
key1 | key2 | key3 | key4 | key5 | key6 | key7 | key8 |
---|---|---|---|---|---|---|---|
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 |
this | throw | true | try | typeof | |||
unit | ulong | unchecked | unsafe | ushort | using | using static | |
virtual | void | volatile | |||||
while |
值类型关键字
key1 | key2 | key3 | key4 |
---|---|---|---|
bool | byte | char | decimal |
double | enum | float | int |
long | sbyte | short | struct |
unit | ulong | ushort |
引用类型关键字
class, delegate, interface, object, string, void
修饰符关键字
key1 | key2 | key3 | key4 | key5 |
---|---|---|---|---|
public | private | internal | protected | abstract |
const | event | extern | new | override |
partial | readonly | sealed | static | unsafe |
virtual | volatile |
语句关键字
key1 | key2 | key3 | key4 | key5 |
---|---|---|---|---|
if | else | switch | do | for |
foreach | in | while | break | continue |
goto | return | throw | try | catch |
finally | checked | unchecked |
方法参数关键字
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
key1 | key2 | key3 | key4 | key5 |
---|---|---|---|---|
add | alias | ascending | async | await |
by | ||||
descending | dynamic | |||
equals | ||||
from | ||||
get | global | group | ||
into | ||||
join | ||||
let | ||||
nameof | ||||
on | orderby | |||
partial(type) | partial(method) | |||
remove | ||||
select | set | |||
value | var | |||
when | where | where | ||
yield |