C#完全手册.pdf
文件大小: 1413k
源码售价: 10 个金币 积分规则     积分充值
资源说明:第一部分 C#语言概述...................................................................................................4 第一章 .NET 编程语言 C#............................................................................................4 1.1 Microsoft.NET——一场新的革命..................................................................4 1.2 .NET 与 C#.......................................................................................................6 1.3 C#语言的特点..................................................................................................8 1.4 小 结 ........................................................................................................11 第二章 运行环境 全面了解.NET.........................................................................12 2.1 .NET 结构.......................................................................................................12 2.2 公用语言运行时环境与公用语言规范.........................................................13 2.3 开 发 工 具 ..................................................................................................17 2.4 小 结 ........................................................................................................19 第三章 编写第一个应用程序 .....................................................................................20 3.1 Welcome 程序 ................................................................................................20 3.2 代 码 分 析 ..................................................................................................20 3.3 运 行 程 序 ..................................................................................................23 .4 添 加 注 释 ................................................................................................25 3.5 小 结 ........................................................................................................27 第二部分 C#程序设计基础.........................................................................................28 第四章 数 据 类 型 ...................................................................................................28 4.1 值 类 型 ....................................................................................................28 4.2 引 用 类 型 ..................................................................................................33 4.3 装箱和拆箱 ....................................................................................................39 4.4 小 结 ........................................................................................................42 第五章 变量和常量 .....................................................................................................44 5.1 变 量 ........................................................................................................44 5.2 常 量 ........................................................................................................46 5.3 小 结 ........................................................................................................47 第六章 类 型 转 换 ...................................................................................................48 6.1 隐式类型转换 ................................................................................................48 6.2 显式类型转换 ................................................................................................53 6.3 小 结 ........................................................................................................56 第七章 表 达 式 .....................................................................................................58 7.1 操 作 符 ....................................................................................................58 7.2 算术操作符和算术表达式.............................................................................59 7.3 赋值操作符和赋值表达式.............................................................................64 7.4 关系操作符和关系表达式.............................................................................65 7.5 逻辑操作符和逻辑表达式.............................................................................68 7.6 位 运 算 ....................................................................................................69 7.7 其它特殊操作符 ............................................................................................72 7.8 小 结 ........................................................................................................77 第八章 流 程 控 制 ...................................................................................................79 8.1 条 件 语 句 ..................................................................................................79 8.2 循 环 语 句 ..................................................................................................86 8.3 条 件 编 译...................................................................................................90 8.4 异常处理语句 ................................................................................................95 8.5 小 结 ......................................................................................................100 第三部分 面向对象的 C#..........................................................................................101 第九章 面向对象的程序设计 ...................................................................................101 9.1 面向对象的基本概念...................................................................................101 9.2 对象的模型技术 ..........................................................................................103 9.3 面向对象的分析 ..........................................................................................105 9.4 面向对象的设计 ..........................................................................................107 9.5 小 结 ......................................................................................................110 第十章 类...................................................................................................................112 10.1 类 的 声 明 ..............................................................................................112 10.2 类 的 成 员 ..............................................................................................113 10.3 构造函数和析构函数 ................................................................................119 10.4 小 结 ....................................................................................................122 第十一章 方 法 ...................................................................................................124 11.1 方法的声明.................................................................................................124 11.2 方法中的参数.............................................................................................125 11.3 静态和非静态的方法.................................................................................129 11.4 方法的重载.................................................................................................130 11.5 操作符重载.................................................................................................134 11.6 小 结.....................................................................................................137 第十二章 域 和 属 性 .............................................................................................139 12.1 域 ................................................................................................................139 12.2 属 性 ....................................................................................................143 12.3 小 结 ....................................................................................................146 第十三章 事件和索引指示器 ...................................................................................148 13.1 事 件 ....................................................................................................148 13.2 索引指示器 ................................................................................................151 13.3 小 结 ....................................................................................................154 第十四章 继 承 ...................................................................................................155 14.1 C#的继承机制............................................................................................155 14.2 多 态 性 ................................................................................................159 14.3 抽象与密封 ................................................................................................163 14.4 继承中关于属性的一些问题.....................................................................169 14.5 小 结 ....................................................................................................172 第四部分 深入了解 C#..............................................................................................174 第十五章 接 口 ...................................................................................................174 15.1 组件编程技术 ............................................................................................174 15.2 接 口 定 义 ..............................................................................................177 15.3 接口的成员 ................................................................................................178 15.4 接口的实现 ................................................................................................182 15.5 抽象类与接口 ............................................................................................195 15.6 小 结 ....................................................................................................196 第十六章 组织应用程序 ...........................................................................................198 16.1 基 本 概 念 ..............................................................................................198 16.2 使用名字空间 ............................................................................................200 16.3 使用指示符 ................................................................................................203 16.4 程 序 示 例 ..............................................................................................206 16.5 小 结 ....................................................................................................213 第十七章 文 件 操 作 .............................................................................................215 17.1 .Net 框架结构提供的 I/O 方式 .................................................................215 17.2 文件存储管理 ............................................................................................217 17.3 读 写 文 件 ..............................................................................................222 17.4 异步文件操作 ............................................................................................227 17.5 小 结 ....................................................................................................234 第十八章 高 级 话 题 .............................................................................................235 18.1 注册表编程 ................................................................................................235 18.2 在 C #代码中调用 C++和 VB 编写的组件..............................................240 18.3 版 本 控 制 ..............................................................................................249 18.4 代 码 优 化 ..............................................................................................252 18.5 小 结 ....................................................................................................254 第五部分 附 录 ...................................................................................................255 附录 A 关 键 字....................................................................................................255 附录 B 错 误 码....................................................................................................256 附录 C .Net 名字空间成员速查................................................................................269
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。