using System.Collections.Generic;
public static void Main()
Dictionary<string, int> dictionary =new Dictionary<string, int>();
dictionary.Add("linux", 1);
dictionary.Add("windows", 2);
dictionary.Add("mac", 3);
if(dictionary.TryGetValue("windows", out result))
Console.WriteLine(result);
Console.WriteLine("Could not find the specified key.");