C#7.0关键字列表
时间:2020-02-23 14:29:50 来源:igfitidea点击:
所有编程语言都依赖于关键字,这些语言是保留的单词,我们无法用于个人需求。
知道关键字使我们可以选择代码的其他单词。
例如,我们无法创建名为的变量 while
因为它是一个C# 关键字。
下表包含C# 关键字。
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 | using static | virtual |
void | volatile | while |