
microsoft.com
https://social.msdn.microsoft.com/Forums/vstudio/e…
How to dynamically generate a dictionary base on different criteria?
I have a need to dynamically generate dictionaries in my C# code depending on the appearance of certain values in a text file that I am parsing. My text file contains comma separated values of the classes, student ids and student names from a school, a little bit like the following: 4, 3, John (class, sstudent id, student name) 3, 3, Jane 4, 4, Harry 2, 3, Harry 3, 5, Jenny 2, 1, Joe . . What ...