How to convert a String[] to an IDictionary<String, String>?
The values at the indices 0,2,4,… shall be keys, and consequently values at the indices 1,3,5,… shall be values.
Example:
new[] { "^BI", "connectORCL", "^CR", "connectCR" }
=>
new Dictionary<String, String> {{"^BI", "connectORCL"}, {"^CR", "connectCR"}};
1 Answer