예제 #1
0
 public virtual IQueryable <TSource> TakeWhile <TSource>(IQueryable <TSource> source, Expression <Func <TSource, Int32, Boolean> > predicate)
 {
     return(Queryable.TakeWhile <TSource>(source, predicate));
 }
예제 #2
0
 /// <inheritdoc cref="Queryable.TakeWhile{TSource}(IQueryable{TSource}, Expression{Func{TSource, int, bool}})" />
 public static IQueryableAndAsyncQueryable <TSource> TakeWhile <TSource>(this IQueryableAndAsyncQueryable <TSource> source, Expression <Func <TSource, int, bool> > predicate)
 {
     return((IQueryableAndAsyncQueryable <TSource>)Queryable.TakeWhile <TSource>(source, predicate));
 }