Dictionary in C#
Dictionary is one of the mostly used generic collection in C#. It is a key and value pair collection.Each key inside this collection must be unique. It resides inside System.Collections.Generic library. Example using System; using System.Collections.Generic; public class Program { public static void Main() { CollectionExample(); } public static void CollectionExample() { //Creating new dictionary Dictionary<string,string> userDetails = new Dictionary<string,string>(); //Adding values to dictionary userDetails.Add("Saravanan","SoftwareDeveloper"); userDetails.Add("Aravind","SoftwareDeveloper"); userDetails.Add("Ajith","Programmer Analyst"); userDetails.Add("Prakash","lecturer"); //updating values of dictionary userDetails["Ajith"]="Dotnet Developer"; //Removing values userDetails.Remove("Prakas...