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

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

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

Definition at line 1911 of file Queryable.cs.

1912 {
1913 if (source == null)
1914 {
1915 throw Error.ArgumentNull("source");
1916 }
1917 if (selector == null)
1918 {
1919 throw Error.ArgumentNull("selector");
1920 }
1921 return source.Provider.Execute<double?>(Expression.Call(null, CachedReflectionInfo.Average_NullableInt64_TSource_2(typeof(TSource)), source.Expression, Expression.Quote(selector)));
1922 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

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