文件名称:C#帮助文档.pdf
文件大小:3.26MB
文件格式:PDF
更新时间:2016-09-04 02:26:59
C#帮助文档
1. 介绍.....................................................................................................................................................................1 1.1 Hello, world...................................................................................................................................................1 1.2 类型...............................................................................................................................................................2 1.2.1 预定义类型............................................................................................................................................3 1.2.2 转换........................................................................................................................................................5 1.2.3 数组类型................................................................................................................................................6 1.2.4 类型系统一致........................................................................................................................................7 1.3 变量和参数...................................................................................................................................................8 1.4 自动内存管理.............................................................................................................................................11 1.5 表达式.........................................................................................................................................................13 1.6 声明.............................................................................................................................................................15 1.7 类.................................................................................................................................................................18 1.7.1 常数......................................................................................................................................................20 1.7.2 域..........................................................................................................................................................20 1.7.3 方法......................................................................................................................................................21 1.7.4 属性......................................................................................................................................................22 1.7.5 事件......................................................................................................................................................23 1.7.6 操作符..................................................................................................................................................24 1.7.7 索引......................................................................................................................................................25 1.7.8 实例构造函数......................................................................................................................................26 1.7.9 析构函数..............................................................................................................................................27 1.7.10 静态构造函数....................................................................................................................................27 1.7.11 继承....................................................................................................................................................28 1.8 结构.............................................................................................................................................................29 1.9 接口.............................................................................................................................................................30 1.10 代表...........................................................................................................................................................31 1.11 联合...........................................................................................................................................................32 1.12 名称空间和集合.......................................................................................................................................32 1.13 版本...........................................................................................................................................................34 1.14 特征...........................................................................................................................................................36 2. 语法结构...........................................................................................................................................................39 2.1 翻译的阶段.................................................................................................................................................39 2.2 文法符号.....................................................................................................................................................39 2.3 预处理.........................................................................................................................................................40 2.3.1 预处理声明..........................................................................................................................................40 2.3.2 #if, #elif, #else, #endif..........................................................................................................................41 2.3.3 预处理控制行......................................................................................................................................42 2.3.4 #line......................................................................................................................................................43 2.3.5 预处理标识符......................................................................................................................................43 2.3.6 预处理表达式......................................................................................................................................43 2.3.7 与空白交互作用..................................................................................................................................44 2.4 语法分析.....................................................................................................................................................45 ……………………