string key = "John Doe"; if(users.ContainsKey(key)) Console.WriteLine("John Doe is " + users[key] + " years old");