wasSharp – Diff between revs 33 and 36

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 33 Rev 36
Line 60... Line 60...
60 { 60 {
61 return ToEnumerable(input).AsParallel().Select((o, p) => new { o, p }) 61 return ToEnumerable(input).AsParallel().Select((o, p) => new { o, p })
62 .GroupBy(q => q.p / 2, q => q.o) 62 .GroupBy(q => q.p / 2, q => q.o)
63 .Select(o => o.ToArray()) 63 .Select(o => o.ToArray())
64 .TakeWhile(o => o.Length % 2 == 0) 64 .TakeWhile(o => o.Length % 2 == 0)
65 .Where(o => !string.IsNullOrEmpty(o[0]) || !string.IsNullOrEmpty(o[1])) 65 .Where(o => !string.IsNullOrEmpty(o[0]))
66 .Select(o => new KeyValuePair<string, string>(o[0], o[1])); 66 .Select(o => new KeyValuePair<string, string>(o[0], o[1]));
67 } 67 }
Line 68... Line 68...
68   68  
69 /////////////////////////////////////////////////////////////////////////// 69 ///////////////////////////////////////////////////////////////////////////