⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch1_10.cs

📁 《c#技术内幕代码》
💻 CS
字号:
using System;
using System.Collections;

class CH1_10 {

   public static void Main() 
   {
	Hashtable ht = new Hashtable(10);
	
	// Add strings to the hashtable associated with a
	// key value (integer).
	
	ht.Add( 100, "Science");
	ht.Add( 200, "Math");
	ht.Add( 300, "English");
	ht.Add( 400, "History");
	ht.Add( 500, "Gym");
	
	foreach ( DictionaryEntry de in ht )
	{
		Console.WriteLine( "Entry Key {0} Value {1}", de.Key, de.Value );
	}
	
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -