stuart-d2
4/7/2015 - 2:12 PM

Hashtable

Hashtable

//LP: C#program  
//using System;
//using System.Collections;

class Program
{
	static void Main()
	{
		Hashtable robohashtable = new Hashtable();
		robohashtable[1] = "WorkBot";
		robohashtable[2]="CombatBot";
		robohashtable[13] = "ProtocolBot";
		
		foreach (DictionaryEntry entry in robohashtable)
		{
			Console.WriteLine("{0}, {1}", entry.Key, entry.Value); 
		}
	} 
}

/*Output :
13, ProtocolBot
2, CombatBot
1, WorkBot

*/