惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
LINUX DO - 热门话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Project Zero
Project Zero
V
Vulnerabilities – Threatpost
Cisco Talos Blog
Cisco Talos Blog
P
Palo Alto Networks Blog
C
Cisco Blogs
A
Arctic Wolf
月光博客
月光博客
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
量子位
小众软件
小众软件
Latest news
Latest news
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
N
Netflix TechBlog - Medium
K
Kaspersky official blog
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Y
Y Combinator Blog
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
S
Schneier on Security
D
Docker
Scott Helme
Scott Helme
MyScale Blog
MyScale Blog
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
GbyAI
GbyAI
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
H
Help Net Security
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tenable Blog
B
Blog
Know Your Adversary
Know Your Adversary
IT之家
IT之家

博客园 - 雨叶秋寒

sjCatSoft上传组件 - 雨叶秋寒 - 博客园 JavaScript判断上传文件类型 - 雨叶秋寒 - 博客园 MSSQL的“未与信任SQL SERVER相关联”错误 JAVA中数据类型的转换 在JavaBean中存放数据 - 雨叶秋寒 - 博客园 JSP中的缓冲区你到底能用多少? - 雨叶秋寒 - 博客园 JSP中out对象的方法总结 JSP中的两种包含页面的方法 - 雨叶秋寒 - 博客园 控制TextBox的ReadOnly属性 - 雨叶秋寒 - 博客园 用计划任务定时执行ASP文件 - 雨叶秋寒 - 博客园 读邹建的书(第二章) ASP备份MSSQL数据库 利用ADOX更改字段名 ADOX使用范例(调试成功) ADOX 对象总结 调用类 调用存储过程 Snippet Compiler 对ArrayList 的简单研究
MSDN给出的Hashtable的示例
雨叶秋寒 · 2005-07-07 · via 博客园 - 雨叶秋寒

using System;
using System.Collections;
public class SamplesHashtable  {

   
public static void Main()  {

      
// Creates and initializes a new Hashtable.
      Hashtable myHT = new Hashtable();
      myHT.Add(
"First""Hello");
      myHT.Add(
"Second""World");
      myHT.Add(
"Third""!");

      
// Displays the properties and values of the Hashtable.
      Console.WriteLine( "myHT" );
      Console.WriteLine( 
"  Count:    {0}", myHT.Count );
      Console.WriteLine( 
"  Keys and Values:" );
      PrintKeysAndValues( myHT );
   }



   
public static void PrintKeysAndValues( Hashtable myList )  {
      IDictionaryEnumerator myEnumerator 
= myList.GetEnumerator();
      Console.WriteLine( 
"\t-KEY-\t-VALUE-" );
      
while ( myEnumerator.MoveNext() )
         Console.WriteLine(
"\t{0}:\t{1}", myEnumerator.Key, myEnumerator.Value);
      Console.WriteLine();
   }

}