C#编程风格
目录
第一章................................................................................................................................................2
第 2 章..................................................................................................................................................3
2.1 空白.......................................................................................................................................3
2.2 花括号...................................................................................................................................7
2.3 类的组织.............................................................................................................................10
第三章...............................................................................................................................................11
3.1 一般原则.............................................................................................................................11
3.2 缩略形式.............................................................................................................................13
3.3 预处理器符号.....................................................................................................................14
3.4 类型和常量.........................................................................................................................14
3.5 枚举.....................................................................................................................................15
3.6 接口.....................................................................................................................................16
3.7 属性.....................................................................................................................................16
3.8 方法.....................................................................................................................................17
3.9 变量和参数.........................................................................................................................17
3.10 特性...................................................................................................................................19
3.11 命名空间...........................................................................................................................19
3.12 事件处理...........................................................................................................................19
3.13 异常...................................................................................................................................20
第四章...............................................................................................................................................20
4.1 一般原则.............................................................................................................................20
4. 2 API......................................................................................................................................21
4.3 内部代码.............................................................................................................................24
第五章...............................................................................................................................................27
5.1 工程.....................................................................................................................................27
5.2 类的设计.............................................................................................................................29
5.3 线程安全和并发.................................................................................................................35
5.4 效率.....................................................................................................................................36
第六章...............................................................................................................................................39
6.1 类型.....................................................................................................................................39
6.2 语句和表达式.....................................................................................................................41
6.3 控制流程.............................................................................................................................42
6.4.类.........................................................................................................................................44
6.5 生命周期.............................................................................................................................47
6.6 字段和属性.........................................................................................................................50
6.7 方法....................................................................................................................................51
6.8 特性.....................................................................................................................................52
6.9 泛型.....................................................................................................................................53
6.10 枚举...................................................................................................................................53
6.11 类型安全、强制转换与转换...........................................................................................55