Is there an elegant way of converting this string array:
string[] a = new[] {\"name\", \"Fred\", \"colour\", \"green\", \"sport\", \"tennis\"};
var dict = a.Select((s, i) => new { s, i }) .GroupBy(x => x.i / 2) .ToDictionary(g => g.First().s, g => g.Last().s);