I currently have a dictionary that loads up with data on the start of the program and its something like:
Dictionary<string, List<KeyValuePair<string,string>>> variants =
new Dictionary<string, List<KeyValuePair<string, string>>>();
How would i reference it if i want to access the Keyvaluepair list of a specific string…
here’s an understanding of it:
each list has an identifier (which is the string) –> the string leads to a list of Keyvaluepairs,
and i want to chose them randomly
Let’s break it down:
Voila!
Now, what you might want to do is wrap those last 3 lines in an extension method:
and now you can use this: