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

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

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

Definition at line 555 of file Queryable.cs.

556 {
557 if (source == null)
558 {
559 throw Error.ArgumentNull("source");
560 }
561 if (keySelector == null)
562 {
563 throw Error.ArgumentNull("keySelector");
564 }
565 if (elementSelector == null)
566 {
567 throw Error.ArgumentNull("elementSelector");
568 }
569 if (resultSelector == null)
570 {
571 throw Error.ArgumentNull("resultSelector");
572 }
573 return source.Provider.CreateQuery<TResult>(Expression.Call(null, CachedReflectionInfo.GroupBy_TSource_TKey_TElement_TResult_4(typeof(TSource), typeof(TKey), typeof(TElement), typeof(TResult)), source.Expression, Expression.Quote(keySelector), Expression.Quote(elementSelector), Expression.Quote(resultSelector)));
574 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

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