Check out example codes for "Dictionaries in unity". It will help you in understanding the concepts better.

Code Example 1

Dictionary<keyClass,valueClass> dictionaryName;
dictionaryName = new Dictionary<keyClass,valueClass>();

Learn ReactJs, React Native from akashmittal.com