H A D | EnumerableExtensions.cs | 52 public static double Average(IEnumerable<int> source) { argument 53 return Average<int, long, double>(source, delegate(long a, int b) { return a + b; }, delegate(long a, long b) { return (double)a / (double)b; }); 56 static TResult Average<TElement, TAggregate, TResult>(IEnumerable<TElement> source, 61 Check.Source(source); 65 foreach (var element in source) { 76 public static double Average(IEnumerable<double> source) { argument 77 return Average<double, double, double>(source, delegate(double a, double b) { return a + b; }, delegate(double a, long b) { return a / b; }); 84 public static bool Contains<TSource>(IEnumerable<TSource> source, TSource value) { argument 85 var collection = source as ICollection<TSource>; 89 return Contains<TSource>(source, valu 92 Contains(IEnumerable<TSource> source, TSource value, IEqualityComparer<TSource> comparer) argument 108 DefaultIfEmpty(IEnumerable<TSource> source) argument 112 DefaultIfEmpty(IEnumerable<TSource> source, TSource defaultValue) argument 118 CreateDefaultIfEmptyIterator(IEnumerable<TSource> source, TSource defaultValue) argument 133 Max(IEnumerable<int> source) argument 139 Iterate(IEnumerable<T> source, U initValue, Func<T, U, U> selector) argument 156 Min(IEnumerable<int> source) argument 166 Select(IEnumerable<TSource> source, Func<TSource, TResult> selector) argument 172 CreateSelectIterator(IEnumerable<TSource> source, Func<TSource, TResult> selector) argument 177 Select(IEnumerable<TSource> source, Func<TSource, int, TResult> selector) argument 183 CreateSelectIterator(IEnumerable<TSource> source, Func<TSource, int, TResult> selector) argument 195 SelectMany(IEnumerable<TSource> source, Func<TSource, int, IEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> selector) argument 202 SelectMany(IEnumerable<TSource> source, Func<TSource, int, IEnumerable<TResult>> selector) argument 208 CreateSelectManyIterator(IEnumerable<TSource> source, Func<TSource, int, IEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> selector) argument 216 CreateSelectManyIterator(IEnumerable<TSource> source, Func<TSource, int, IEnumerable<TResult>> selector) argument 229 Sum(IEnumerable<int> source) argument 235 Sum(IEnumerable<TA> source, Func<TR, TA, TR> selector) argument 248 Take(IEnumerable<TSource> source, int count) argument 254 CreateTakeIterator(IEnumerable<TSource> source, int count) argument 271 ToArray(IEnumerable<TSource> source) argument [all...] |