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

◆ Aggregate< TSource, TAccumulate, TResult >()

static TResult System.Linq.Queryable.Aggregate< TSource, TAccumulate, TResult > ( this IQueryable< TSource > source,
TAccumulate seed,
Expression< Func< TAccumulate, TSource, TAccumulate > > func,
Expression< Func< TAccumulate, TResult > > selector )
inlinestatic

Definition at line 2009 of file Queryable.cs.

2010 {
2011 if (source == null)
2012 {
2013 throw Error.ArgumentNull("source");
2014 }
2015 if (func == null)
2016 {
2017 throw Error.ArgumentNull("func");
2018 }
2019 if (selector == null)
2020 {
2021 throw Error.ArgumentNull("selector");
2022 }
2023 return source.Provider.Execute<TResult>(Expression.Call(null, CachedReflectionInfo.Aggregate_TSource_TAccumulate_TResult_4(typeof(TSource), typeof(TAccumulate), typeof(TResult)), source.Expression, Expression.Constant(seed), Expression.Quote(func), Expression.Quote(selector)));
2024 }
static ConstantExpression Constant(object? value)
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

References System.Linq.CachedReflectionInfo.Aggregate_TSource_TAccumulate_TResult_4(), System.Linq.Error.ArgumentNull(), System.Linq.Expressions.Expression< TDelegate >.Call(), System.Linq.Expressions.Expression< TDelegate >.Constant(), System.Linq.func, System.Linq.Expressions.Expression< TDelegate >.Quote(), System.Linq.selector, and System.Linq.source.