示例#1
0
 public static IEnumerable <TSource> Distinct <TSource>(
     this IEnumerable <TSource> source)
 {
     return(Consumable.Distinct(source));
 }
示例#2
0
 public static IEnumerable <TSource> Where <TSource>(
     this IEnumerable <TSource> source,
     Func <TSource, int, bool> predicate)
 {
     return(Consumable.Where(source, predicate));
 }
示例#3
0
文件: ToList.cs 项目: manofstick/L2O2
 public static List <TSource> ToList <TSource>(this IEnumerable <TSource> source)
 {
     return(Consumable.ToList(source));
 }
示例#4
0
 public static IEnumerable <TResult> Select <TSource, TResult>(
     this IEnumerable <TSource> source,
     Func <TSource, int, TResult> selector)
 {
     return(Consumable.Select(source, selector));
 }
示例#5
0
文件: All.cs 项目: manofstick/L2O2
 public static bool All <TSource>(
     this IEnumerable <TSource> source,
     Func <TSource, bool> predicate)
 {
     return(Consumable.All(source, predicate));
 }
示例#6
0
文件: Take.cs 项目: manofstick/L2O2
 public static IEnumerable <TSource> Take <TSource>(
     this IEnumerable <TSource> source,
     int count)
 {
     return(Consumable.Take(source, count));
 }