c# dictionary add existing key code example
Example 1: c# dictionary add
Dictionary<char, string> alphabetCode = new Dictionary<char, string>();
alphabetCode.Add('A', "Alpha");
Example 2: c# add key value pair to dictionary
d.Add(new KeyValuePair<int, string>(1, "TVs"));