12-22

1.web标准系列文章.
http://www.cnblogs.com/JustinYoung/archive/2007/08/17/yes-bs-index.html
2.如何随机取数组中的多个值?给定一个数组,需要从此数组中随机取出不重复的几项;
http://www.cnblogs.com/yao/archive/2007/05/28/762942.html
 public static IList<string> getListItems(IList<string> list, int num)
        {
            //新建一个泛型列表,将传入的列表复制过来,用于运算,而不要直接操作传入的列表;   

            //这样写是引用复制,不对啦,谢谢Osamede指出.
            //IList<string> temp_list = list;

            //另外这样写也要注意,也不是深度复制喽,关于深度复制可以做为一个新话题来说,这儿就不说啦;
            IList<string> temp_list = new List<string>(list);

            //取出的项,保存在此列表
            IList<string> return_list = new List<string>();

            //Random random = new Random(unchecked((int)DateTime.Now.Ticks));
            Random random = new Random();

            for (int i = 0; i < num; i++)
            {
                //判断如果列表还有可以取出的项,以防下标越界
                if (temp_list.Count > 0)
                {
                    //在列表中产生一个随机索引
                    int arrIndex = random.Next(0, temp_list.Count);
                    //将此随机索引的对应的列表元素值复制出来
                    return_list.Add(temp_list[arrIndex]);
                    //然后删掉此索引的列表项
                    temp_list.RemoveAt(arrIndex);
                }
                else
                {
                    //列表项取完后,退出循环,比如列表本来只有10项,但要求取出20项.
                    break;
                }
            }
            return return_list;
        }

3.wcf之旅
http://www.cnblogs.com/artech/archive/2007/02/26/656901.html
4.ibatisNet使用
http://www.oss-home.com/DotNet/List/IBatisNet.aspx
http://www.cnblogs.com/shanyou/category/54974.html

http://tech.it168.com/oldarticle/2007-03-29/200703291049808.shtml
5.asp.net 2.0操作数据
http://www.cnblogs.com/lovecherry/archive/2006/07/02/440840.html
http://kb.cnblogs.com/list/42684/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值