/* * C# Program to Demonstrate iDictionary Interface */ using System; using System.Collections.Generic; class Program { static void Main() { Dictionary dict = new Dictionary(); dict["Tom"] = "Bob"; WriteKeyA(dict); SortedDictionary sort = new SortedDictionary(); sort["Tom"] = "Jerry"; WriteKeyA(sort); Console.ReadLine(); } static void WriteKeyA(IDictionary i) { Console.WriteLine(i["Tom"]); } } /* Bob Jerry