摘要: C#中有两种类型1.值类型(value type)2.引用类型(reference type)值类型的变量直接包括他们的数据,而引用类型的变量存储对它们的数据的引用,后者称为对象.值类型:简单类型(simple type) , 枚举类型(enum type) 和结构类型(struct type).引用类型:类类型(class type) , 接口类型(interface type) , 数组类型(... 阅读全文
posted @ 2007-12-03 23:40 sliuqin 阅读(236) 评论(0) 推荐(0) 编辑
摘要: #enlarge {...}{list-style-type:none;}#enlarge li {...}{display:block;float:left;margin:20px;width:22px; height:18px; position:relative;}#enlarge li a {...}{display:block;width:22px; height:18px; /"图片原... 阅读全文
posted @ 2007-12-03 21:54 sliuqin 阅读(433) 评论(0) 推荐(0) 编辑
摘要: http://msdn2.microsoft.com/zh-cn/asp.net/aa336613(en-us).aspx设计做的很好。文章来源:http://link-to.cn/post/2007/12/Design-Templates.aspx 阅读全文
posted @ 2007-12-03 21:01 sliuqin 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 定义方法:virtual--方法可以重写abstrack--方法必须在非抽象类的派生类中重写(只用于抽象类中)overfide--方法重写了一个基类的方法。extren--方法定义放在其他地方。文章来源:http://link-to.cn/post/2007/12/定义类成员.aspx 阅读全文
posted @ 2007-12-03 19:45 sliuqin 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 委托(delegate)是一种可以把引用储存为函数的类型。委托是一种引用方法的类型。一旦为委托分配了方法,委托将与该方法具有完全相同的行为。委托方法的使用可以像其他任何方法一样,具有参数和返回值public delegate int PerformCalculation(int x, int y);与委托的签名(由返回类型和参数组成)匹配的任何方法都可以分配给该委托。这样就可以通过编程方式来更改方... 阅读全文
posted @ 2007-12-03 16:58 sliuqin 阅读(154) 评论(0) 推荐(0) 编辑