2011年9月17日
摘要: 构造函数和析构函数 转载http://www.cnblogs.com/philzhou/archive/2010/08/10/CSharp_Constructor.html本节说明对象的创建、初始化和销毁过程。本节介绍下列主题: l 类构造函数l 结构构造函数l 析构函数类构造函数本节将讨论三种类构造函数:类构造函数的类型注释实例用于创建并初始化类的实例。私有在类之外不可访问的特殊类型实例构造函数。无法用私有构造函数来实例化类。静态在创建第一个实例或引用任何静态成员之前,将自动调用这种构造函数来初始化类。无法直接调用这种构造函数。备注(1) 实例构造函数创建新对象时将调用类构造函数,例如:Po 阅读全文
posted @ 2011-09-17 21:13 springside例子 阅读(778) 评论(0) 推荐(1) 编辑
摘要: 一. 先看联机文档上的一段有关特殊字符的说明A regular expression (or RE) specifies a set of strings that matches it; the functions in this module let you check if a particular string matches a given regular expression (or if a given regular expression matches a particular string, which comes down to the same thing).Regul 阅读全文
posted @ 2011-09-17 20:32 springside例子 阅读(857) 评论(0) 推荐(0) 编辑