Check out example codes for "c# dictionary add". It will help you in understanding the concepts better.

Code Example 1

Dictionary<char, string> alphabetCode = new Dictionary<char, string>();
alphabetCode.Add('A', "Alpha");

Code Example 2

// To add an item to a dictionary use 'Add()'
dict.Add(1,"One");

Learn ReactJs, React Native from akashmittal.com