Change value for a key
using System;
using System.Collections.Generic;
public class Example
{
public static void Main()
{
Dictionary<string, string> openWith = new Dictionary<string, string>();
openWith.Add("A", "a");
openWith.Add("B", "b");
openWith.Add("C", "c");
Console.WriteLine(openWith["A"]);
openWith["A"] = "aaaa";
Console.WriteLine(openWith["A"]);
openWith["Z"] = "z";
}
}
Related examples in the same category