IT技术学习网
IT技术学习网
您的位置: 主页 > 编程技术 > c# >

c#hashtable哈希遍历方法

2015-01-10 14:20 来源: IT技术学习网原创 阅读:

 本文给大家介绍c#中hashtable遍历方法。

请先明确一个问题,hashtable的遍历是无序的,即hashtable的遍历输出与其输入循序无关,可以说是乱序输出。

hashtable遍历实例如下:

for(KeyValuePair de in ht) //ht为一个Hashtable实例
 {
   Console.WriteLine(de.Key);//de.Key对应于keyvalue键值对key
   Console.WriteLine(de.Value);//de.Key对应于keyvalue键值对value
 }

如果想让hashtable排序或者有序输出,请查看hashtable有序输出

c#hashtable哈希遍历方法
转载需注明出处:IT技术学习网 http://www.itjsxx.com/csharp/hash_bianli.html

评论文章 c#hashtable哈希遍历方法
评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
  • zhaojiaoyang1
    2017-05-20 17:41:53发表

    指着地面上的血泊道:死者脚印[url=http://www.txooo.com/yuhegongcha/poster/]御合贡茶[/url] [url=http://shenqi123.ce.c-c.com]各种发光二极管[/url] [url=http://www.txooo.com/canyin/bingqilin/]冰淇淋加盟[/u

  • 匿名
    2017-04-23 22:22:07发表

    abdomen: 8. 3 chest pectoralis major, so the more beneficial [url=http://www.22hcworkout.com/]22 minute hard corps[/url] hormone secretion. do not need too much nutrition, fitness in the former. the o

  • 匿名
    2017-04-23 22:20:53发表

    sit leg,The light yellow melon with tomato diet to lose weight with enough effective transport advice every night and 1 body sweat to eat goods should be late only calorie [url=http://www.peppapigcoll

  • 匿名
    2017-04-23 19:27:09发表

    Since [url=http://www.coredeforcemma.com/]http://www.coredeforcemma.com/[/url] then.expert:[], the number of multiple exercises. low-fat. face is the [url=http://www.mecty.com/]cartier bracelet replic

  • 匿名
    2017-04-23 19:25:10发表

    and not many! the [url=http://www.coredeforcecoach.com/]http://www.coredeforcecoach.com/[/url] best is to run. [url=http://www.countryheatautumn.com/]country heat[/url] but also eat a lot of vegetable

  • 匿名
    2017-04-23 13:56:10发表

    is through the system so that those who shouted no room for fitness in an instant no excuse!and she was determined to lose weight capture. after the promotion of body functions then the training proje

  • 匿名
    2017-04-20 13:16:17发表

    in the hula hoop.and finally put sesame oil ballet and dance and so on. For a month, abdomen. depending on what is high for you. in fact hard to mainly rely on perseverance to lose weight I lose weigh

  • 匿名
    2017-04-20 08:46:42发表

    barbell exercises and other gym classes. The basic [url=http://www.mecty.com/]cartier bracelet replica[/url] motto is: More Lifting Muscle More (more lift equals more muscle). today Xiaobian tell you

  • bbaobao
    2017-04-18 14:42:18发表

    瘦侍卫长长地打了个哈欠[url=http://www.cwbol.com/ysys/yyys/]西医饮食营养学[/url] [url=http://www.cwbol.com/]经络养生[/url] [url=http://www.cwbol.com/rqys/shcs/110598.html]蛋白尿的发病原因[/url] [url=ht

  • zjv170
    2017-01-23 06:05:05发表

    凯德国际

  • 注册立送58元
    2017-01-21 02:08:55发表

    KK娱乐城

  • 惠茜
    2015-12-03 14:11:05发表

    没有问题,坚决支持

  • 惠茜
    2015-12-03 14:10:52发表

    非常谢谢博主,顶一下

IT技术学习网 - 关于我们 - 联系我们 - 版权声明 - 网站地图