コード例 #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));
 }