System.Linq.Enumerable: Method Members

The methods of System.Linq.Enumerable are listed below. For a list of all members, see the Enumerable Members list.

See Also: Inherited members from System.Object

Public Methods

static
Aggregate<TSource>(this IEnumerable<TSource>, Func<TSource, TSource, TSource>) : TSource

Applies an accumulator function over a sequence.

static
Aggregate<TSource,TAccumulate>(this IEnumerable<TSource>, TAccumulate, Func<TAccumulate, TSource, TAccumulate>) : TAccumulate

Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.

static
Aggregate<TSource,TAccumulate,TResult>(this IEnumerable<TSource>, TAccumulate, Func<TAccumulate, TSource, TAccumulate>, Func<TAccumulate, TResult>) : TResult

Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.

static
All<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : bool

Determines whether all elements of a sequence satisfy a condition.

static
Any<TSource>(this IEnumerable<TSource>) : bool

Determines whether a sequence contains any elements.

static
Any<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : bool

Determines whether any element of a sequence satisfies a condition.

static
AsEnumerable<TSource>(this IEnumerable<TSource>) : IEnumerable<TSource>

Returns the input typed as IEnumerable`1.

static
Average(this IEnumerable<decimal>) : decimal

Computes the average of a sequence of decimal values.

static
Average(this IEnumerable<double>) : double

Computes the average of a sequence of double values.

static
Average(this IEnumerable<int>) : double

Computes the average of a sequence of int values.

static
Average(this IEnumerable<long>) : double

Computes the average of a sequence of long values.

static
Average(this IEnumerable<Nullable<decimal>>) : Nullable<decimal>

Computes the average of a sequence of nullable decimal values.

static
Average(this IEnumerable<Nullable<double>>) : Nullable<double>

Computes the average of a sequence of nullable double values.

static
Average(this IEnumerable<Nullable<int>>) : Nullable<double>

Computes the average of a sequence of nullable int values.

static
Average(this IEnumerable<Nullable<long>>) : Nullable<double>

Computes the average of a sequence of nullable long values.

static
Average(this IEnumerable<Nullable<float>>) : Nullable<float>

Computes the average of a sequence of nullable float values.

static
Average(this IEnumerable<float>) : float

Computes the average of a sequence of float values.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, decimal>) : decimal

Computes the average of a sequence of decimal values that are obtained by invoking a transform function on each element of the input sequence.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, double>) : double

Computes the average of a sequence of double values that are obtained by invoking a transform function on each element of the input sequence.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, int>) : double

Computes the average of a sequence of int values that are obtained by invoking a transform function on each element of the input sequence.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, long>) : double

Computes the average of a sequence of long values that are obtained by invoking a transform function on each element of the input sequence.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<decimal>>) : Nullable<decimal>

Computes the average of a sequence of nullable decimal values that are obtained by invoking a transform function on each element of the input sequence.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<double>>) : Nullable<double>

Computes the average of a sequence of nullable double values that are obtained by invoking a transform function on each element of the input sequence.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<int>>) : Nullable<double>

Computes the average of a sequence of nullable int values that are obtained by invoking a transform function on each element of the input sequence.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<long>>) : Nullable<double>

Computes the average of a sequence of nullable long values that are obtained by invoking a transform function on each element of the input sequence.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<float>>) : Nullable<float>

Computes the average of a sequence of nullable float values that are obtained by invoking a transform function on each element of the input sequence.

static
Average<TSource>(this IEnumerable<TSource>, Func<TSource, float>) : float

Computes the average of a sequence of float values that are obtained by invoking a transform function on each element of the input sequence.

static
Cast<TResult>(this IEnumerable) : IEnumerable<TResult>

Casts the elements of an IEnumerable to the specified type.

static
Concat<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>) : IEnumerable<TSource>

Concatenates two sequences.

static
Contains<TSource>(this IEnumerable<TSource>, TSource) : bool

Determines whether a sequence contains a specified element by using the default equality comparer.

static
Contains<TSource>(this IEnumerable<TSource>, TSource, IEqualityComparer<TSource>) : bool

Determines whether a sequence contains a specified element by using a specified IEqualityComparer`1.

static
Count<TSource>(this IEnumerable<TSource>) : int

Returns the number of elements in a sequence.

static
Count<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : int

Returns a number that represents how many elements in the specified sequence satisfy a condition.

static
DefaultIfEmpty<TSource>(this IEnumerable<TSource>) : IEnumerable<TSource>

Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.

static
DefaultIfEmpty<TSource>(this IEnumerable<TSource>, TSource) : IEnumerable<TSource>

Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.

static
Distinct<TSource>(this IEnumerable<TSource>) : IEnumerable<TSource>

Returns distinct elements from a sequence by using the default equality comparer to compare values.

static
Distinct<TSource>(this IEnumerable<TSource>, IEqualityComparer<TSource>) : IEnumerable<TSource>

Returns distinct elements from a sequence by using a specified IEqualityComparer`1 to compare values.

static
ElementAt<TSource>(this IEnumerable<TSource>, int) : TSource

Returns the element at a specified index in a sequence.

static
ElementAtOrDefault<TSource>(this IEnumerable<TSource>, int) : TSource

Returns the element at a specified index in a sequence or a default value if the index is out of range.

static
Empty<TResult>() : IEnumerable<TResult>

Returns an empty IEnumerable`1 that has the specified type argument.

static
Except<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>) : IEnumerable<TSource>

Produces the set difference of two sequences by using the default equality comparer to compare values.

static
Except<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) : IEnumerable<TSource>

Produces the set difference of two sequences by using the specified IEqualityComparer`1 to compare values.

static
First<TSource>(this IEnumerable<TSource>) : TSource

Returns the first element of a sequence.

static
First<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : TSource

Returns the first element in a sequence that satisfies a specified condition.

static
FirstOrDefault<TSource>(this IEnumerable<TSource>) : TSource

Returns the first element of a sequence, or a default value if the sequence contains no elements.

static
FirstOrDefault<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : TSource

Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.

static
GroupBy<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>) : IEnumerable<IGrouping<TKey, TSource>>

Groups the elements of a sequence according to a specified key selector function.

static
GroupBy<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>) : IEnumerable<IGrouping<TKey, TSource>>

Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.

static
GroupBy<TSource,TKey,TElement>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>) : IEnumerable<IGrouping<TKey, TElement>>

Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.

static
GroupBy<TSource,TKey,TElement>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>) : IEnumerable<IGrouping<TKey, TElement>>

Groups the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.

static
GroupBy<TSource,TKey,TResult>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TKey, IEnumerable<TSource>,TResult>) : IEnumerable<TResult>

Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.

static
GroupBy<TSource,TKey,TResult>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TKey, IEnumerable<TSource>,TResult>, IEqualityComparer<TKey>) : IEnumerable<TResult>

Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer.

static
GroupBy<TSource,TKey,TElement,TResult>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, Func<TKey, IEnumerable<TElement>,TResult>) : IEnumerable<TResult>

Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.

static
GroupBy<TSource,TKey,TElement,TResult>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, Func<TKey, IEnumerable<TElement>,TResult>, IEqualityComparer<TKey>) : IEnumerable<TResult>

Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.

static
GroupJoin<TOuter,TInner,TKey,TResult>(this IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, IEnumerable<TInner>,TResult>) : IEnumerable<TResult>

Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.

static
GroupJoin<TOuter,TInner,TKey,TResult>(this IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, IEnumerable<TInner>,TResult>, IEqualityComparer<TKey>) : IEnumerable<TResult>

Correlates the elements of two sequences based on key equality and groups the results. A specified IEqualityComparer`1 is used to compare keys.

static
Intersect<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>) : IEnumerable<TSource>

Produces the set intersection of two sequences by using the default equality comparer to compare values.

static
Intersect<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) : IEnumerable<TSource>

Produces the set intersection of two sequences by using the specified IEqualityComparer`1 to compare values.

static
Join<TOuter,TInner,TKey,TResult>(this IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, TInner, TResult>) : IEnumerable<TResult>

Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.

static
Join<TOuter,TInner,TKey,TResult>(this IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, TInner, TResult>, IEqualityComparer<TKey>) : IEnumerable<TResult>

Correlates the elements of two sequences based on matching keys. A specified IEqualityComparer`1 is used to compare keys.

static
Last<TSource>(this IEnumerable<TSource>) : TSource

Returns the last element of a sequence.

static
Last<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : TSource

Returns the last element of a sequence that satisfies a specified condition.

static
LastOrDefault<TSource>(this IEnumerable<TSource>) : TSource

Returns the last element of a sequence, or a default value if the sequence contains no elements.

static
LastOrDefault<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : TSource

Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.

static
LongCount<TSource>(this IEnumerable<TSource>) : long

Returns an long that represents the total number of elements in a sequence.

static
LongCount<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : long

Returns an long that represents how many elements in a sequence satisfy a condition.

static
Max(this IEnumerable<decimal>) : decimal

Returns the maximum value in a sequence of decimal values.

static
Max(this IEnumerable<double>) : double

Returns the maximum value in a sequence of double values.

static
Max(this IEnumerable<int>) : int

Returns the maximum value in a sequence of int values.

static
Max(this IEnumerable<long>) : long

Returns the maximum value in a sequence of long values.

static
Max(this IEnumerable<Nullable<decimal>>) : Nullable<decimal>

Returns the maximum value in a sequence of nullable decimal values.

static
Max(this IEnumerable<Nullable<double>>) : Nullable<double>

Returns the maximum value in a sequence of nullable double values.

static
Max(this IEnumerable<Nullable<int>>) : Nullable<int>

Returns the maximum value in a sequence of nullable int values.

static
Max(this IEnumerable<Nullable<long>>) : Nullable<long>

Returns the maximum value in a sequence of nullable long values.

static
Max(this IEnumerable<Nullable<float>>) : Nullable<float>

Returns the maximum value in a sequence of nullable float values.

static
Max(this IEnumerable<float>) : float

Returns the maximum value in a sequence of float values.

static
Max<TSource>(this IEnumerable<TSource>) : TSource

Returns the maximum value in a generic sequence.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, decimal>) : decimal

Invokes a transform function on each element of a sequence and returns the maximum decimal value.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, double>) : double

Invokes a transform function on each element of a sequence and returns the maximum double value.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, int>) : int

Invokes a transform function on each element of a sequence and returns the maximum int value.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, long>) : long

Invokes a transform function on each element of a sequence and returns the maximum long value.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<decimal>>) : Nullable<decimal>

Invokes a transform function on each element of a sequence and returns the maximum nullable decimal value.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<double>>) : Nullable<double>

Invokes a transform function on each element of a sequence and returns the maximum nullable double value.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<int>>) : Nullable<int>

Invokes a transform function on each element of a sequence and returns the maximum nullable int value.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<long>>) : Nullable<long>

Invokes a transform function on each element of a sequence and returns the maximum nullable long value.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<float>>) : Nullable<float>

Invokes a transform function on each element of a sequence and returns the maximum nullable float value.

static
Max<TSource>(this IEnumerable<TSource>, Func<TSource, float>) : float

Invokes a transform function on each element of a sequence and returns the maximum float value.

static
Max<TSource,TResult>(this IEnumerable<TSource>, Func<TSource, TResult>) : TResult

Invokes a transform function on each element of a generic sequence and returns the maximum resulting value.

static
Min(this IEnumerable<decimal>) : decimal

Returns the minimum value in a sequence of decimal values.

static
Min(this IEnumerable<double>) : double

Returns the minimum value in a sequence of double values.

static
Min(this IEnumerable<int>) : int

Returns the minimum value in a sequence of int values.

static
Min(this IEnumerable<long>) : long

Returns the minimum value in a sequence of long values.

static
Min(this IEnumerable<Nullable<decimal>>) : Nullable<decimal>

Returns the minimum value in a sequence of nullable decimal values.

static
Min(this IEnumerable<Nullable<double>>) : Nullable<double>

Returns the minimum value in a sequence of nullable double values.

static
Min(this IEnumerable<Nullable<int>>) : Nullable<int>

Returns the minimum value in a sequence of nullable int values.

static
Min(this IEnumerable<Nullable<long>>) : Nullable<long>

Returns the minimum value in a sequence of nullable long values.

static
Min(this IEnumerable<Nullable<float>>) : Nullable<float>

Returns the minimum value in a sequence of nullable float values.

static
Min(this IEnumerable<float>) : float

Returns the minimum value in a sequence of float values.

static
Min<TSource>(this IEnumerable<TSource>) : TSource

Returns the minimum value in a generic sequence.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, decimal>) : decimal

Invokes a transform function on each element of a sequence and returns the minimum decimal value.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, double>) : double

Invokes a transform function on each element of a sequence and returns the minimum double value.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, int>) : int

Invokes a transform function on each element of a sequence and returns the minimum int value.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, long>) : long

Invokes a transform function on each element of a sequence and returns the minimum long value.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<decimal>>) : Nullable<decimal>

Invokes a transform function on each element of a sequence and returns the minimum nullable decimal value.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<double>>) : Nullable<double>

Invokes a transform function on each element of a sequence and returns the minimum nullable double value.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<int>>) : Nullable<int>

Invokes a transform function on each element of a sequence and returns the minimum nullable int value.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<long>>) : Nullable<long>

Invokes a transform function on each element of a sequence and returns the minimum nullable long value.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<float>>) : Nullable<float>

Invokes a transform function on each element of a sequence and returns the minimum nullable float value.

static
Min<TSource>(this IEnumerable<TSource>, Func<TSource, float>) : float

Invokes a transform function on each element of a sequence and returns the minimum float value.

static
Min<TSource,TResult>(this IEnumerable<TSource>, Func<TSource, TResult>) : TResult

Invokes a transform function on each element of a generic sequence and returns the minimum resulting value.

static
OfType<TResult>(this IEnumerable) : IEnumerable<TResult>

Filters the elements of an IEnumerable based on a specified type.

static
OrderBy<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>) : IOrderedEnumerable<TSource>

Sorts the elements of a sequence in ascending order according to a key.

static
OrderBy<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>, IComparer<TKey>) : IOrderedEnumerable<TSource>

Sorts the elements of a sequence in ascending order by using a specified comparer.

static
OrderByDescending<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>) : IOrderedEnumerable<TSource>

Sorts the elements of a sequence in descending order according to a key.

static
OrderByDescending<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>, IComparer<TKey>) : IOrderedEnumerable<TSource>

Sorts the elements of a sequence in descending order by using a specified comparer.

static
Range(int, int) : IEnumerable<int>

Generates a sequence of integral numbers within a specified range.

static
Repeat<TResult>(TResult, int) : IEnumerable<TResult>
Documentation for this section has not yet been entered.
static
Reverse<TSource>(this IEnumerable<TSource>) : IEnumerable<TSource>

Inverts the order of the elements in a sequence.

static
Select<TSource,TResult>(this IEnumerable<TSource>, Func<TSource, int, TResult>) : IEnumerable<TResult>

Projects each element of a sequence into a new form by incorporating the element's index.

static
Select<TSource,TResult>(this IEnumerable<TSource>, Func<TSource, TResult>) : IEnumerable<TResult>

Projects each element of a sequence into a new form.

static
SelectMany<TSource,TResult>(this IEnumerable<TSource>, Func<TSource, IEnumerable<TResult>>) : IEnumerable<TResult>

Projects each element of a sequence to an IEnumerable`1 and flattens the resulting sequences into one sequence.

static
SelectMany<TSource,TResult>(this IEnumerable<TSource>, Func<TSource, int, IEnumerable<TResult>>) : IEnumerable<TResult>

Projects each element of a sequence to an IEnumerable`1, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element.

static
SelectMany<TSource,TCollection,TResult>(this IEnumerable<TSource>, Func<TSource, IEnumerable<TCollection>>, Func<TSource, TCollection, TResult>) : IEnumerable<TResult>

Projects each element of a sequence to an IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.

static
SelectMany<TSource,TCollection,TResult>(this IEnumerable<TSource>, Func<TSource, int, IEnumerable<TCollection>>, Func<TSource, TCollection, TResult>) : IEnumerable<TResult>

Projects each element of a sequence to an IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element.

static
SequenceEqual<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>) : bool

Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.

static
SequenceEqual<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) : bool

Determines whether two sequences are equal by comparing their elements by using a specified IEqualityComparer`1.

static
Single<TSource>(this IEnumerable<TSource>) : TSource

Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.

static
Single<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : TSource

Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.

static
SingleOrDefault<TSource>(this IEnumerable<TSource>) : TSource

Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.

static
SingleOrDefault<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : TSource

Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.

static
Skip<TSource>(this IEnumerable<TSource>, int) : IEnumerable<TSource>

Bypasses a specified number of elements in a sequence and then returns the remaining elements.

static
SkipWhile<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : IEnumerable<TSource>

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.

static
SkipWhile<TSource>(this IEnumerable<TSource>, Func<TSource, int, bool>) : IEnumerable<TSource>

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.

static
Sum(this IEnumerable<decimal>) : decimal

Computes the sum of a sequence of decimal values.

static
Sum(this IEnumerable<double>) : double

Computes the sum of a sequence of double values.

static
Sum(this IEnumerable<int>) : int

Computes the sum of a sequence of int values.

static
Sum(this IEnumerable<long>) : long

Computes the sum of a sequence of long values.

static
Sum(this IEnumerable<Nullable<decimal>>) : Nullable<decimal>

Computes the sum of a sequence of nullable decimal values.

static
Sum(this IEnumerable<Nullable<double>>) : Nullable<double>

Computes the sum of a sequence of nullable double values.

static
Sum(this IEnumerable<Nullable<int>>) : Nullable<int>

Computes the sum of a sequence of nullable int values.

static
Sum(this IEnumerable<Nullable<long>>) : Nullable<long>

Computes the sum of a sequence of nullable long values.

static
Sum(this IEnumerable<Nullable<float>>) : Nullable<float>

Computes the sum of a sequence of nullable float values.

static
Sum(this IEnumerable<float>) : float

Computes the sum of a sequence of float values.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, decimal>) : decimal

Computes the sum of the sequence of decimal values that are obtained by invoking a transform function on each element of the input sequence.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, double>) : double

Computes the sum of the sequence of double values that are obtained by invoking a transform function on each element of the input sequence.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, int>) : int

Computes the sum of the sequence of int values that are obtained by invoking a transform function on each element of the input sequence.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, long>) : long

Computes the sum of the sequence of long values that are obtained by invoking a transform function on each element of the input sequence.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<decimal>>) : Nullable<decimal>

Computes the sum of the sequence of nullable decimal values that are obtained by invoking a transform function on each element of the input sequence.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<double>>) : Nullable<double>

Computes the sum of the sequence of nullable double values that are obtained by invoking a transform function on each element of the input sequence.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<int>>) : Nullable<int>

Computes the sum of the sequence of nullable int values that are obtained by invoking a transform function on each element of the input sequence.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<long>>) : Nullable<long>

Computes the sum of the sequence of nullable long values that are obtained by invoking a transform function on each element of the input sequence.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, Nullable<float>>) : Nullable<float>

Computes the sum of the sequence of nullable float values that are obtained by invoking a transform function on each element of the input sequence.

static
Sum<TSource>(this IEnumerable<TSource>, Func<TSource, float>) : float

Computes the sum of the sequence of float values that are obtained by invoking a transform function on each element of the input sequence.

static
Take<TSource>(this IEnumerable<TSource>, int) : IEnumerable<TSource>

Returns a specified number of contiguous elements from the start of a sequence.

static
TakeWhile<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : IEnumerable<TSource>

Returns elements from a sequence as long as a specified condition is true.

static
TakeWhile<TSource>(this IEnumerable<TSource>, Func<TSource, int, bool>) : IEnumerable<TSource>

Returns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function.

static
ThenBy<TSource,TKey>(this IOrderedEnumerable<TSource>, Func<TSource, TKey>) : IOrderedEnumerable<TSource>

Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.

static
ThenBy<TSource,TKey>(this IOrderedEnumerable<TSource>, Func<TSource, TKey>, IComparer<TKey>) : IOrderedEnumerable<TSource>

Performs a subsequent ordering of the elements in a sequence in ascending order by using a specified comparer.

static
ThenByDescending<TSource,TKey>(this IOrderedEnumerable<TSource>, Func<TSource, TKey>) : IOrderedEnumerable<TSource>

Performs a subsequent ordering of the elements in a sequence in descending order, according to a key.

static
ThenByDescending<TSource,TKey>(this IOrderedEnumerable<TSource>, Func<TSource, TKey>, IComparer<TKey>) : IOrderedEnumerable<TSource>

Performs a subsequent ordering of the elements in a sequence in descending order by using a specified comparer.

static
ToArray<TSource>(this IEnumerable<TSource>) : TSource[]

Creates an array from a IEnumerable`1.

static
ToDictionary<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>) : Dictionary<TKey, TSource>

Creates a Dictionary`2 from an IEnumerable`1 according to a specified key selector function.

static
ToDictionary<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>) : Dictionary<TKey, TSource>

Creates a Dictionary`2 from an IEnumerable`1 according to a specified key selector function and key comparer.

static
ToDictionary<TSource,TKey,TElement>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>) : Dictionary<TKey, TElement>

Creates a Dictionary`2 from an IEnumerable`1 according to specified key selector and element selector functions.

static
ToDictionary<TSource,TKey,TElement>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>) : Dictionary<TKey, TElement>

Creates a Dictionary`2 from an IEnumerable`1 according to a specified key selector function, a comparer, and an element selector function.

static
ToList<TSource>(this IEnumerable<TSource>) : List<TSource>

Creates a List`1 from an IEnumerable`1.

static
ToLookup<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>) : ILookup<TKey, TSource>

Creates a System.Linq.Lookup`2 from an IEnumerable`1 according to a specified key selector function.

static
ToLookup<TSource,TKey>(this IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>) : ILookup<TKey, TSource>

Creates a System.Linq.Lookup`2 from an IEnumerable`1 according to a specified key selector function and key comparer.

static
ToLookup<TSource,TKey,TElement>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>) : ILookup<TKey, TElement>

Creates a System.Linq.Lookup`2 from an IEnumerable`1 according to specified key selector and element selector functions.

static
ToLookup<TSource,TKey,TElement>(this IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>) : ILookup<TKey, TElement>

Creates a System.Linq.Lookup`2 from an IEnumerable`1 according to a specified key selector function, a comparer and an element selector function.

static
Union<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>) : IEnumerable<TSource>

Produces the set union of two sequences by using the default equality comparer.

static
Union<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) : IEnumerable<TSource>

Produces the set union of two sequences by using a specified IEqualityComparer`1.

static
Where<TSource>(this IEnumerable<TSource>, Func<TSource, bool>) : IEnumerable<TSource>

Filters a sequence of values based on a predicate.

static
Where<TSource>(this IEnumerable<TSource>, Func<TSource, int, bool>) : IEnumerable<TSource>

Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.

static
Zip<TFirst,TSecond,TResult>(this IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst, TSecond, TResult>) : IEnumerable<TResult>

Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.