在"C#中List是怎么存放元素的"中,分析了List的源码,了解了List是如何存放元素的。这次,就自定义一个泛型集合类型,可实现添加元素,并支持遍历。 该泛型集合类型一定需要一个添加元素的方法,在添加元素的时候需要考虑:当添加的元素超过当前数组的容量,就让数组扩容;为了支持循环遍历,该泛型集合类...
分类:
其他好文 时间:
2014-09-18 00:32:02
阅读次数:
320
假设有一个规定长度的数组,如何扩容呢?最容易想到的是通过如下方式扩容: class Program { static void Main(string[] args) { int[] arrs = new[] {1, 2, 3, 4, 5}; arrs[5] = 6; } }
报错...
分类:
其他好文 时间:
2014-09-17 23:11:42
阅读次数:
332
录制测试上传文件脚本,回放报Warning -26490: File name in a multipart submit is missing or empty. Using an empty file [MsgId: MWAR-26490]。经过几天努力,总算解决了此问题,先看以前的脚本:...
分类:
其他好文 时间:
2014-09-17 23:10:42
阅读次数:
505
This topic has not yet been rated-Rate this topichttp://msdn.microsoft.com/EN-US/library/bb190066.aspxUpdated:December 16, 2011Applies To:Microsoft Dy...
分类:
Web程序 时间:
2014-09-17 21:38:12
阅读次数:
454
ssis freach loop container 传入变量给 某些数据源的时候。应该选择loop container ,设置delayvalidateion为true。这样数据源控件就不会报empty的错误。
分类:
其他好文 时间:
2014-09-17 13:23:42
阅读次数:
236
http://www.cnblogs.com/slowsoul/archive/2013/05/30/3107198.htmlhttp://www.thinksaas.cn/group/topic/282233/http://2660311.blog.51cto.com/2650311/135822...
分类:
编程语言 时间:
2014-09-17 02:21:11
阅读次数:
255
webform中获取repeat控件列表下的checkbox选中的值:码农上代码:public static string getSelectedIDs(Repeater Rpt_) { string res = string.Empty; ...
分类:
Web程序 时间:
2014-09-16 23:37:21
阅读次数:
245
问题来源:\ThinkPHP3.1.3_full\ThinkPHP\Lib\Core\App.class.php 中 init()方法 if(C('OUTPUT_ENCODE')){ $zlib = ini_get('zlib.output_compression'); if(empty($zlib...
分类:
Web程序 时间:
2014-09-16 20:23:20
阅读次数:
270
一,查看profiles的状态值 1,查看profiles是否已经打开了,默认是不打开的。 mysql> show profiles; Empty set (0.02 sec)mysql> show variables like '%pro%';+---------------------------+-------+| Variable_name | Valu...
分类:
数据库 时间:
2014-09-16 15:59:50
阅读次数:
242
网上有个人写的python快速教程,非常好。比看书好多了。猛击下面的链接地址 http://www.douban.com/group/topic/30008503/ Python基础 Python基础01 Hello World! Python基础02 基本数据类型 Python基础03 序列 Py...
分类:
编程语言 时间:
2014-09-16 14:12:30
阅读次数:
312