目录
8.1 结束点和可到达性.................................................................................................................................239
8.2 块.............................................................................................................................................................241
8.2.1 语句列表..........................................................................................................................................241
8.3 空语句.....................................................................................................................................................242
8.4 标记语句.................................................................................................................................................242
8.5 声明语句.................................................................................................................................................243
8.5.1 局部变量声明..................................................................................................................................243
8.5.2 局部常量声明..................................................................................................................................244
8.6 表达式语句.............................................................................................................................................245
8.7 选择语句.................................................................................................................................................245
8.7.1 if 语句...............................................................................................................................................245
8.7.2 switch 语句.......................................................................................................................................246
8.8 迭代语句.................................................................................................................................................250
8.8.1 while 语句........................................................................................................................................250
8.8.2 do 语句.............................................................................................................................................250
8.8.3 for 语句.............................................................................................................................................251
8.8.4 foreach 语句.....................................................................................................................................252
8.9 跳转语句.................................................................................................................................................255
8.9.1 break 语句........................................................................................................................................256
8.9.2 continue 语句....................................................................................................................................257
8.9.3 goto 语句..........................................................................................................................................257
8.9.4 return 语句........................................................................................................................................258
8.9.5 throw 语句........................................................................................................................................259
8.10 try 语句.................................................................................................................................................260
8.11 checked 语句和 unchecked 语句..........................................................................................................262
8.12 lock 语句...............................................................................................................................................263
8.13 using 语句.............................................................................................................................................264
8.14 yield 语句..............................................................................................................................................266
9. 命名空间......................................................................................................................................................268
9.1 编译单元.................................................................................................................................................268
9.2 命名空间声明.........................................................................................................................................268
9.3 Extern 别名.............................................................................................................................................270
9.4 using 指令...............................................................................................................................................270
9.4.1 using 别名指令.................................................................................................................................271
9.4.2 Using 命名空间指令........................................................................................................................273
9.5 命名空间成员.........................................................................................................................................275
9.6 类型声明.................................................................................................................................................276
9.7 命名空间别名限定符.............................................................................................................................276
9.7.1 别名的唯一性..................................................................................................................................277
10. 类................................................................................................................................................................279
10.1 类声明...................................................................................................................................................279
10.1.1 类修饰符........................................................................................................................................279
10.1.1.1 抽象类......................................................................................................................................280
10.1.1.2 密封类......................................................................................................................................280
10.1.1.3 静态类......................................................................................................................................280
版权所有
Ó
Microsoft Corporation1998 1999-2012
。保留所有权利。
xi