In this Blog we are going to see, How to Remove item from the Dictionary Collection.
Step 1:
Adding items to Dictionary as KeyValuePair
Dictionary<int,
string> dic = new
Dictionary<int,
string>();
dic.Add(1, "Lajapathy");
dic.Add(2, "Parthiban");
dic.Add(3, "AnandBabu");
dic.Add(4, "Sathiya");
Step 2:
Displaying the Dictionary Items
foreach (KeyValuePair<int, string>
tempDic in dic)
{
Response.Write("Key :" +
tempDic.Key + " value :" +
tempDic.Value + "<br/>");

Join the conversation! Your thoughts help the community grow.