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

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

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

Definition at line 439 of file Queryable.cs.

440 {
441 if (source == null)
442 {
443 throw Error.ArgumentNull("source");
444 }
445 if (predicate == null)
446 {
447 throw Error.ArgumentNull("predicate");
448 }
449 return source.Provider.CreateQuery<TSource>(Expression.Call(null, CachedReflectionInfo.TakeWhile_Index_TSource_2(typeof(TSource)), source.Expression, Expression.Quote(predicate)));
450 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

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