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

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

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

Definition at line 1339 of file Queryable.cs.

1340 {
1341 if (source == null)
1342 {
1343 throw Error.ArgumentNull("source");
1344 }
1345 if (predicate == null)
1346 {
1347 throw Error.ArgumentNull("predicate");
1348 }
1349 return source.Provider.Execute<int>(Expression.Call(null, CachedReflectionInfo.Count_TSource_2(typeof(TSource)), source.Expression, Expression.Quote(predicate)));
1350 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

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