I have a string like this:
Option1: Value1
Option2: Value2
Option3: Value3
I am trying to put this into a multidimensional array so that I can then lookup the values depending on what I put for 'Option', it will return the value.
So far I have this which will put each line into the array:
string[] Header = Headers.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
I am unsure how to split this into a 2 dimensional array so that it will split the line based on the colon delimiter?
How can I then perform a lookup? for example in PHP I would use the varible: $Header['Option2'] in order to return the value for "Option2".
Thanks.