摘要: 一:Array类型扩展1:Array.add(array, item):在数组的末尾增加一个元素,静态方法,不需要建立实例即可调用: //Demo :http://young18.cnblogs.comvar Arr=["Asp.net","Csharp","Ajax"];Array.add(Arr, "Javascript");alert(Str.toString()); //返回:Asp.... 阅读全文
posted @ 2007-05-09 22:33 Young.Jiang 阅读(1454) 评论(4) 推荐(0) 编辑
摘要: 1)避免使用ArrayList,因为对象要转化为System.Object加入ArrayList,取出时又要转化为想要的类型,设计到大量的装箱拆箱过程,推荐使用自定义集合取代ArrayList,.net还在System.Collection.Specialized命名空间下为string提供了一个强类型的集合类StringCollection 2)用Hashtable 取代其他字典类型,如:Str... 阅读全文
posted @ 2007-05-09 22:17 Young.Jiang 阅读(450) 评论(1) 推荐(0) 编辑
摘要: 如何通过Enterprise Library来方便的缓存,获取您的数据! 阅读全文
posted @ 2007-05-09 22:11 Young.Jiang 阅读(608) 评论(1) 推荐(0) 编辑
摘要: EnterpriseLibrary 3.0的验证应用程序块,可以为系统开发提供统一的验证方法,并且和其他程序块一样操作简单,非常实用。 1,使整个程序维持统一的验证风格; 2,验证对象必须是标准的.net数据类型; 3,允许通过配置文件,特性,代码来创建规则; 4,允许对同一个验证对象设置多个验证规则。 阅读全文
posted @ 2007-05-09 21:55 Young.Jiang 阅读(1814) 评论(1) 推荐(0) 编辑