call ToArray on LINQ select query
问题 I have this query: Dim test = result.GroupBy(Function(row) groupedindexes.Select( Function(grpindex) row(grpindex)).ToArray, comp) I'm building an expression tree. I have already build the part inside the GroupBy function and now I would like to call the ToArray method. Here is the code: Public Function Grouping(ByVal result As IEnumerable(Of Object()), ByVal groupedindexes As List(Of Integer), ByVal comparer As compare) As Expression Dim groupbyMethod = GetType(Enumerable).GetMethods