using System.Collections.Generic;
public static void Main()
Dictionary<int, string> My_dict =
new Dictionary<int, string>();
My_dict.Add(1123, "Welcome");
My_dict.Add(1125, "GeeksforGeeks");
if (My_dict.ContainsValue("GeeksforGeeks")==true)
Console.WriteLine("Value is found...!!");
Console.WriteLine("Value is not found...!!");
if (My_dict.ContainsKey(1125))
Console.WriteLine(My_dict[1125]);
Console.WriteLine("Value is not found...!!");
foreach(KeyValuePair<int, string> ele in My_dict)
Console.WriteLine("{0} and {1}",
foreach(KeyValuePair<int, string> ele in My_dict)
Console.WriteLine("{0} and {1}",
Console.WriteLine("Total number of key/value "+
"pairs present in My_dict:{0}", My_dict.Count);