इस तरह एक शब्दकोश में:
Dictionary<string, string> openWith = new Dictionary<string, string>();
openWith.Add("txt", "notepad.exe");
openWith.Add("bmp", "paint.exe");
openWith.Add("dib", "paint.exe");
openWith.Add("rtf", "wordpad.exe");
Console.WriteLine("For key = \"rtf\", value = {0}.", openWith["rtf"]);
आउटपुट है:
कुंजी = "rtf" मान = wordpad.exe के लिए
क्या {0}
मतलब है?