1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|
abstract | const | extern | int | out | short | typeof |
as | continue | false | interface | override | sizeof | uint |
base | decimal | finally | internal | params | stackalloc | long |
bool | default | fixed | is | private | static | unchecked |
break | delegate | float | lock | protected | string | unsafe |
byte | do | for | long | public | struct | ushort |
case | double | foreach | namespace | readonly | switch | using |
catch | else | goto | new | ref | this | virtual |
char | enum | if | null | retrun | throw | void |
checked | event | implicit | object | sbyte | true | volatile |
class | explicit | in | operator | sealed | try | while |
关键字不能被用来做变量名或者其他形式的标识符,除非以@字符开始。
所有C#关键字全部由小写字母组成
近期评论