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

◆ LongCount< TSource >() [2/2]

static long System.Linq.Queryable.LongCount< TSource > ( this IQueryable< TSource > source,
Expression< Func< TSource, bool > > predicate )
inlinestatic

Definition at line 1363 of file Queryable.cs.

1364 {
1365 if (source == null)
1366 {
1367 throw Error.ArgumentNull("source");
1368 }
1369 if (predicate == null)
1370 {
1371 throw Error.ArgumentNull("predicate");
1372 }
1373 return source.Provider.Execute<long>(Expression.Call(null, CachedReflectionInfo.LongCount_TSource_2(typeof(TSource)), source.Expression, Expression.Quote(predicate)));
1374 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

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