Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GroupBy< TSource, TKey, TResult >() [1/2]

static IQueryable< TResult > System.Linq.Queryable.GroupBy< TSource, TKey, TResult > ( this IQueryable< TSource > source,
Expression< Func< TSource, TKey > > keySelector,
Expression< Func< TKey, IEnumerable< TSource >, TResult > > resultSelector )
inlinestatic

Definition at line 577 of file Queryable.cs.

578 {
579 if (source == null)
580 {
581 throw Error.ArgumentNull("source");
582 }
583 if (keySelector == null)
584 {
585 throw Error.ArgumentNull("keySelector");
586 }
587 if (resultSelector == null)
588 {
589 throw Error.ArgumentNull("resultSelector");
590 }
591 return source.Provider.CreateQuery<TResult>(Expression.Call(null, CachedReflectionInfo.GroupBy_TSource_TKey_TResult_3(typeof(TSource), typeof(TKey), typeof(TResult)), source.Expression, Expression.Quote(keySelector), Expression.Quote(resultSelector)));
592 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

References System.Linq.Error.ArgumentNull(), System.Linq.Expressions.Expression< TDelegate >.Call(), System.Linq.CachedReflectionInfo.GroupBy_TSource_TKey_TResult_3(), System.Linq.keySelector, System.Linq.Expressions.Expression< TDelegate >.Quote(), System.Linq.resultSelector, and System.Linq.source.