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

◆ Average< TSource >() [8/10]

static ? double System.Linq.Queryable.Average< TSource > ( this IQueryable< TSource > source,
Expression< Func< TSource, int?> > selector )
inlinestatic

Definition at line 1855 of file Queryable.cs.

1856 {
1857 if (source == null)
1858 {
1859 throw Error.ArgumentNull("source");
1860 }
1861 if (selector == null)
1862 {
1863 throw Error.ArgumentNull("selector");
1864 }
1865 return source.Provider.Execute<double?>(Expression.Call(null, CachedReflectionInfo.Average_NullableInt32_TSource_2(typeof(TSource)), source.Expression, Expression.Quote(selector)));
1866 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

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