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

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com