using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace faculty_hashtable { class Program { static void Main(string[] args) { Hashtable ht = new Hashtable(); ht.Add("1", "Hyderabad"); ht.Add("2", "Aptech"); ht.Add("3", "center"); foreach(DictionaryEntry de in ht) { Console.WriteLine(de.Key + " " + de.Value); //Console.WriteLine(de.Key); } Console.ReadLine(); } } }
Wednesday 4 April 2012
HashTable Example
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment