首页 > 其他 > 详细

工作细微基础点

时间:2015-04-22 18:01:19      阅读:113      评论:0      收藏:0      [点我收藏+]
技术分享
1 Hashtable table = new Hashtable();
2          table.Add("dsa", "das");
3          Console.WriteLine(table);//System.Collections.Hashtable//输出的是类型
4          Console.WriteLine(table.Keys);//System.Collections.Hashtable+KeyCollection
5          Console.WriteLine(table.Values); //System.Collections.Hashtable+ValueCollection
6          Console.WriteLine(table.Keys.Count);  //1
7          Console.ReadKey();
Hash输出类型

ashx用到session

空间using System.Web.SessionState;   ashx类再继承IRequiresSessionState

foreach for

foreach是对集合(无序)arraylist,list,hastable,dictionary进行遍历,for对datatable, array(有序)
 

工作细微基础点

原文:http://www.cnblogs.com/leee/p/4437343.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!