Check out example codes for "how to read a csv file and create a dictionary in c#". It will help you in understanding the concepts better.

Code Example 1

private Dictionary<string, string> ReadCsvFile(string pathToCsvFile)
            Dictionary<string, string> dictionary = new Dictionary<string, string>();
            using (var reader = new StreamReader(pathToCsvFile))
                while (!reader.EndOfStream)
                    var line = reader.ReadLine();
                    if (line == null) continue;
                    var values = line.Split(';');

            return dictionary;

// or
var dict = File.ReadLines(pathToCsvFile).Select(line => line.Split(';')).ToDictionary(line => line[0], line => line[1]);

Learn ReactJs, React Native from