If you have an IEnumerable<IGrouping<K, T>>, say from
var ans = src.GroupBy(s => s.Field);
Is there a better way (rarely used LINQ method/variation) to convert to an IEnumerable<IEnumerable<T>> then nested Selects like so:
var ans2 = ans.Select(g => g.Select(s => s));
For those that aren't understanding,
var anst = ans2.Select(g => g.GetType().ReflectedType).All(t => t == typeof(Enumerable));
should return anst == true.
One solution to avoid the nested select is using the
AsEnumerable()method.