mscorlib(4.0.0.0) API with additions
|
Provides a set of static
(Shared
in Visual Basic) methods for querying objects that implement T:System.Collections.Generic.IEnumerable`1.
More...
Static Public Member Functions | |
static IEnumerable< TSource > | Where< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Filters a sequence of values based on a predicate. More... | |
static IEnumerable< TSource > | Where< TSource > (this IEnumerable< TSource > source, Func< TSource, int, bool > predicate) |
Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function. More... | |
static IEnumerable< TResult > | Select< TSource, TResult > (this IEnumerable< TSource > source, Func< TSource, TResult > selector) |
Projects each element of a sequence into a new form. More... | |
static IEnumerable< TResult > | Select< TSource, TResult > (this IEnumerable< TSource > source, Func< TSource, int, TResult > selector) |
Projects each element of a sequence into a new form by incorporating the element's index. More... | |
static IEnumerable< TResult > | SelectMany< TSource, TResult > (this IEnumerable< TSource > source, Func< TSource, IEnumerable< TResult >> selector) |
Projects each element of a sequence to an T:System.Collections.Generic.IEnumerable`1 and flattens the resulting sequences into one sequence. More... | |
static IEnumerable< TResult > | SelectMany< TSource, TResult > (this IEnumerable< TSource > source, Func< TSource, int, IEnumerable< TResult >> selector) |
Projects each element of a sequence to an T:System.Collections.Generic.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. More... | |
static IEnumerable< TResult > | SelectMany< TSource, TCollection, TResult > (this IEnumerable< TSource > source, Func< TSource, int, IEnumerable< TCollection >> collectionSelector, Func< TSource, TCollection, TResult > resultSelector) |
Projects each element of a sequence to an T:System.Collections.Generic.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. More... | |
static IEnumerable< TResult > | SelectMany< TSource, TCollection, TResult > (this IEnumerable< TSource > source, Func< TSource, IEnumerable< TCollection >> collectionSelector, Func< TSource, TCollection, TResult > resultSelector) |
Projects each element of a sequence to an T:System.Collections.Generic.IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. More... | |
static IEnumerable< TSource > | Take< TSource > (this IEnumerable< TSource > source, int count) |
Returns a specified number of contiguous elements from the start of a sequence. More... | |
static IEnumerable< TSource > | TakeWhile< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Returns elements from a sequence as long as a specified condition is true. More... | |
static IEnumerable< TSource > | TakeWhile< TSource > (this IEnumerable< TSource > source, Func< TSource, int, bool > predicate) |
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. More... | |
static IEnumerable< TSource > | Skip< TSource > (this IEnumerable< TSource > source, int count) |
Bypasses a specified number of elements in a sequence and then returns the remaining elements. More... | |
static IEnumerable< TSource > | SkipWhile< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. More... | |
static IEnumerable< TSource > | SkipWhile< TSource > (this IEnumerable< TSource > source, Func< TSource, int, bool > predicate) |
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. More... | |
static IEnumerable< TResult > | Join< TOuter, TInner, TKey, TResult > (this IEnumerable< TOuter > outer, IEnumerable< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, TInner, TResult > resultSelector) |
Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys. More... | |
static IEnumerable< TResult > | Join< TOuter, TInner, TKey, TResult > (this IEnumerable< TOuter > outer, IEnumerable< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, TInner, TResult > resultSelector, IEqualityComparer< TKey > comparer) |
Correlates the elements of two sequences based on matching keys. A specified T:System.Collections.Generic.IEqualityComparer`1 is used to compare keys. More... | |
static IEnumerable< TResult > | GroupJoin< TOuter, TInner, TKey, TResult > (this IEnumerable< TOuter > outer, IEnumerable< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, IEnumerable< TInner >, TResult > resultSelector) |
Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys. More... | |
static IEnumerable< TResult > | GroupJoin< TOuter, TInner, TKey, TResult > (this IEnumerable< TOuter > outer, IEnumerable< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, IEnumerable< TInner >, TResult > resultSelector, IEqualityComparer< TKey > comparer) |
Correlates the elements of two sequences based on key equality and groups the results. A specified T:System.Collections.Generic.IEqualityComparer`1 is used to compare keys. More... | |
static IOrderedEnumerable< TSource > | OrderBy< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector) |
Sorts the elements of a sequence in ascending order according to a key. More... | |
static IOrderedEnumerable< TSource > | OrderBy< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, IComparer< TKey > comparer) |
Sorts the elements of a sequence in ascending order by using a specified comparer. More... | |
static IOrderedEnumerable< TSource > | OrderByDescending< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector) |
Sorts the elements of a sequence in descending order according to a key. More... | |
static IOrderedEnumerable< TSource > | OrderByDescending< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, IComparer< TKey > comparer) |
Sorts the elements of a sequence in descending order by using a specified comparer. More... | |
static IOrderedEnumerable< TSource > | ThenBy< TSource, TKey > (this IOrderedEnumerable< TSource > source, Func< TSource, TKey > keySelector) |
Performs a subsequent ordering of the elements in a sequence in ascending order according to a key. More... | |
static IOrderedEnumerable< TSource > | ThenBy< TSource, TKey > (this IOrderedEnumerable< TSource > source, Func< TSource, TKey > keySelector, IComparer< TKey > comparer) |
Performs a subsequent ordering of the elements in a sequence in ascending order by using a specified comparer. More... | |
static IOrderedEnumerable< TSource > | ThenByDescending< TSource, TKey > (this IOrderedEnumerable< TSource > source, Func< TSource, TKey > keySelector) |
Performs a subsequent ordering of the elements in a sequence in descending order, according to a key. More... | |
static IOrderedEnumerable< TSource > | ThenByDescending< TSource, TKey > (this IOrderedEnumerable< TSource > source, Func< TSource, TKey > keySelector, IComparer< TKey > comparer) |
Performs a subsequent ordering of the elements in a sequence in descending order by using a specified comparer. More... | |
static IEnumerable< IGrouping< TKey, TSource > > | GroupBy< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector) |
Groups the elements of a sequence according to a specified key selector function. More... | |
static IEnumerable< IGrouping< TKey, TSource > > | GroupBy< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, IEqualityComparer< TKey > comparer) |
Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer. More... | |
static IEnumerable< IGrouping< TKey, TElement > > | GroupBy< TSource, TKey, TElement > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector) |
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. More... | |
static IEnumerable< IGrouping< TKey, TElement > > | GroupBy< TSource, TKey, TElement > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, IEqualityComparer< TKey > comparer) |
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. More... | |
static IEnumerable< TResult > | GroupBy< TSource, TKey, TResult > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TKey, IEnumerable< TSource >, TResult > resultSelector) |
Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. More... | |
static IEnumerable< TResult > | GroupBy< TSource, TKey, TElement, TResult > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, Func< TKey, IEnumerable< TElement >, TResult > resultSelector) |
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. More... | |
static IEnumerable< TResult > | GroupBy< TSource, TKey, TResult > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TKey, IEnumerable< TSource >, TResult > resultSelector, IEqualityComparer< TKey > comparer) |
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. More... | |
static IEnumerable< TResult > | GroupBy< TSource, TKey, TElement, TResult > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, Func< TKey, IEnumerable< TElement >, TResult > resultSelector, IEqualityComparer< TKey > comparer) |
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. More... | |
static IEnumerable< TSource > | Concat< TSource > (this IEnumerable< TSource > first, IEnumerable< TSource > second) |
Concatenates two sequences. More... | |
static IEnumerable< TResult > | Zip< TFirst, TSecond, TResult > (this IEnumerable< TFirst > first, IEnumerable< TSecond > second, Func< TFirst, TSecond, TResult > resultSelector) |
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results. More... | |
static IEnumerable< TSource > | Distinct< TSource > (this IEnumerable< TSource > source) |
Returns distinct elements from a sequence by using the default equality comparer to compare values. More... | |
static IEnumerable< TSource > | Distinct< TSource > (this IEnumerable< TSource > source, IEqualityComparer< TSource > comparer) |
Returns distinct elements from a sequence by using a specified T:System.Collections.Generic.IEqualityComparer`1 to compare values. More... | |
static IEnumerable< TSource > | Union< TSource > (this IEnumerable< TSource > first, IEnumerable< TSource > second) |
Produces the set union of two sequences by using the default equality comparer. More... | |
static IEnumerable< TSource > | Union< TSource > (this IEnumerable< TSource > first, IEnumerable< TSource > second, IEqualityComparer< TSource > comparer) |
Produces the set union of two sequences by using a specified T:System.Collections.Generic.IEqualityComparer`1. More... | |
static IEnumerable< TSource > | Intersect< TSource > (this IEnumerable< TSource > first, IEnumerable< TSource > second) |
Produces the set intersection of two sequences by using the default equality comparer to compare values. More... | |
static IEnumerable< TSource > | Intersect< TSource > (this IEnumerable< TSource > first, IEnumerable< TSource > second, IEqualityComparer< TSource > comparer) |
Produces the set intersection of two sequences by using the specified T:System.Collections.Generic.IEqualityComparer`1 to compare values. More... | |
static IEnumerable< TSource > | Except< TSource > (this IEnumerable< TSource > first, IEnumerable< TSource > second) |
Produces the set difference of two sequences by using the default equality comparer to compare values. More... | |
static IEnumerable< TSource > | Except< TSource > (this IEnumerable< TSource > first, IEnumerable< TSource > second, IEqualityComparer< TSource > comparer) |
Produces the set difference of two sequences by using the specified T:System.Collections.Generic.IEqualityComparer`1 to compare values. More... | |
static IEnumerable< TSource > | Reverse< TSource > (this IEnumerable< TSource > source) |
Inverts the order of the elements in a sequence. More... | |
static bool | SequenceEqual< TSource > (this IEnumerable< TSource > first, IEnumerable< TSource > second) |
Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. More... | |
static bool | SequenceEqual< TSource > (this IEnumerable< TSource > first, IEnumerable< TSource > second, IEqualityComparer< TSource > comparer) |
Determines whether two sequences are equal by comparing their elements by using a specified T:System.Collections.Generic.IEqualityComparer`1. More... | |
static IEnumerable< TSource > | AsEnumerable< TSource > (this IEnumerable< TSource > source) |
Returns the input typed as T:System.Collections.Generic.IEnumerable`1. More... | |
static TSource [] | ToArray< TSource > (this IEnumerable< TSource > source) |
Creates an array from a T:System.Collections.Generic.IEnumerable`1. More... | |
static List< TSource > | ToList< TSource > (this IEnumerable< TSource > source) |
Creates a T:System.Collections.Generic.List`1 from an T:System.Collections.Generic.IEnumerable`1. More... | |
static Dictionary< TKey, TSource > | ToDictionary< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector) |
Creates a T:System.Collections.Generic.Dictionary`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function. More... | |
static Dictionary< TKey, TSource > | ToDictionary< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, IEqualityComparer< TKey > comparer) |
Creates a T:System.Collections.Generic.Dictionary`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function and key comparer. More... | |
static Dictionary< TKey, TElement > | ToDictionary< TSource, TKey, TElement > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector) |
Creates a T:System.Collections.Generic.Dictionary`2 from an T:System.Collections.Generic.IEnumerable`1 according to specified key selector and element selector functions. More... | |
static Dictionary< TKey, TElement > | ToDictionary< TSource, TKey, TElement > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, IEqualityComparer< TKey > comparer) |
Creates a T:System.Collections.Generic.Dictionary`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function, a comparer, and an element selector function. More... | |
static ILookup< TKey, TSource > | ToLookup< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector) |
Creates a T:System.Linq.Lookup`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function. More... | |
static ILookup< TKey, TSource > | ToLookup< TSource, TKey > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, IEqualityComparer< TKey > comparer) |
Creates a T:System.Linq.Lookup`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function and key comparer. More... | |
static ILookup< TKey, TElement > | ToLookup< TSource, TKey, TElement > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector) |
Creates a T:System.Linq.Lookup`2 from an T:System.Collections.Generic.IEnumerable`1 according to specified key selector and element selector functions. More... | |
static ILookup< TKey, TElement > | ToLookup< TSource, TKey, TElement > (this IEnumerable< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, IEqualityComparer< TKey > comparer) |
Creates a T:System.Linq.Lookup`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function, a comparer and an element selector function. More... | |
static IEnumerable< TSource > | DefaultIfEmpty< TSource > (this IEnumerable< TSource > source) |
Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty. More... | |
static IEnumerable< TSource > | DefaultIfEmpty< TSource > (this IEnumerable< TSource > source, TSource defaultValue) |
Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty. More... | |
static IEnumerable< TResult > | OfType< TResult > (this IEnumerable source) |
Filters the elements of an T:System.Collections.IEnumerable based on a specified type. More... | |
static IEnumerable< TResult > | Cast< TResult > (this IEnumerable source) |
Casts the elements of an T:System.Collections.IEnumerable to the specified type. More... | |
static TSource | First< TSource > (this IEnumerable< TSource > source) |
Returns the first element of a sequence. More... | |
static TSource | First< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Returns the first element in a sequence that satisfies a specified condition. More... | |
static TSource | FirstOrDefault< TSource > (this IEnumerable< TSource > source) |
Returns the first element of a sequence, or a default value if the sequence contains no elements. More... | |
static TSource | FirstOrDefault< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. More... | |
static TSource | Last< TSource > (this IEnumerable< TSource > source) |
Returns the last element of a sequence. More... | |
static TSource | Last< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Returns the last element of a sequence that satisfies a specified condition. More... | |
static TSource | LastOrDefault< TSource > (this IEnumerable< TSource > source) |
Returns the last element of a sequence, or a default value if the sequence contains no elements. More... | |
static TSource | LastOrDefault< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found. More... | |
static TSource | Single< TSource > (this IEnumerable< TSource > source) |
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence. More... | |
static TSource | Single< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists. More... | |
static TSource | SingleOrDefault< TSource > (this IEnumerable< TSource > source) |
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. More... | |
static TSource | SingleOrDefault< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
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. More... | |
static TSource | ElementAt< TSource > (this IEnumerable< TSource > source, int index) |
Returns the element at a specified index in a sequence. More... | |
static TSource | ElementAtOrDefault< TSource > (this IEnumerable< TSource > source, int index) |
Returns the element at a specified index in a sequence or a default value if the index is out of range. More... | |
static IEnumerable< int > | Range (int start, int count) |
Generates a sequence of integral numbers within a specified range. More... | |
static IEnumerable< TResult > | Repeat< TResult > (TResult element, int count) |
Generates a sequence that contains one repeated value. More... | |
static IEnumerable< TResult > | Empty< TResult > () |
Returns an empty T:System.Collections.Generic.IEnumerable`1 that has the specified type argument. More... | |
static bool | Any< TSource > (this IEnumerable< TSource > source) |
Determines whether a sequence contains any elements. More... | |
static bool | Any< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Determines whether any element of a sequence satisfies a condition. More... | |
static bool | All< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Determines whether all elements of a sequence satisfy a condition. More... | |
static int | Count< TSource > (this IEnumerable< TSource > source) |
Returns the number of elements in a sequence. More... | |
static int | Count< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Returns a number that represents how many elements in the specified sequence satisfy a condition. More... | |
static long | LongCount< TSource > (this IEnumerable< TSource > source) |
Returns an T:System.Int64 that represents the total number of elements in a sequence. More... | |
static long | LongCount< TSource > (this IEnumerable< TSource > source, Func< TSource, bool > predicate) |
Returns an T:System.Int64 that represents how many elements in a sequence satisfy a condition. More... | |
static bool | Contains< TSource > (this IEnumerable< TSource > source, TSource value) |
Determines whether a sequence contains a specified element by using the default equality comparer. More... | |
static bool | Contains< TSource > (this IEnumerable< TSource > source, TSource value, IEqualityComparer< TSource > comparer) |
Determines whether a sequence contains a specified element by using a specified T:System.Collections.Generic.IEqualityComparer`1. More... | |
static TSource | Aggregate< TSource > (this IEnumerable< TSource > source, Func< TSource, TSource, TSource > func) |
Applies an accumulator function over a sequence. More... | |
static TAccumulate | Aggregate< TSource, TAccumulate > (this IEnumerable< TSource > source, TAccumulate seed, Func< TAccumulate, TSource, TAccumulate > func) |
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value. More... | |
static TResult | Aggregate< TSource, TAccumulate, TResult > (this IEnumerable< TSource > source, TAccumulate seed, Func< TAccumulate, TSource, TAccumulate > func, Func< TAccumulate, TResult > resultSelector) |
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. More... | |
static int | Sum (this IEnumerable< int > source) |
Computes the sum of a sequence of T:System.Int32 values. More... | |
static ? int | Sum (this IEnumerable< int?> source) |
Computes the sum of a sequence of nullable T:System.Int32 values. More... | |
static long | Sum (this IEnumerable< long > source) |
Computes the sum of a sequence of T:System.Int64 values. More... | |
static ? long | Sum (this IEnumerable< long?> source) |
Computes the sum of a sequence of nullable T:System.Int64 values. More... | |
static float | Sum (this IEnumerable< float > source) |
Computes the sum of a sequence of T:System.Single values. More... | |
static ? float | Sum (this IEnumerable< float?> source) |
Computes the sum of a sequence of nullable T:System.Single values. More... | |
static double | Sum (this IEnumerable< double > source) |
Computes the sum of a sequence of T:System.Double values. More... | |
static ? double | Sum (this IEnumerable< double?> source) |
Computes the sum of a sequence of nullable T:System.Double values. More... | |
static decimal | Sum (this IEnumerable< decimal > source) |
Computes the sum of a sequence of T:System.Decimal values. More... | |
static ? decimal | Sum (this IEnumerable< decimal?> source) |
Computes the sum of a sequence of nullable T:System.Decimal values. More... | |
static int | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, int > selector) |
Computes the sum of the sequence of T:System.Int32 values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? int | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, int?> selector) |
Computes the sum of the sequence of nullable T:System.Int32 values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static long | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, long > selector) |
Computes the sum of the sequence of T:System.Int64 values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? long | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, long?> selector) |
Computes the sum of the sequence of nullable T:System.Int64 values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static float | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, float > selector) |
Computes the sum of the sequence of T:System.Single values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? float | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, float?> selector) |
Computes the sum of the sequence of nullable T:System.Single values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static double | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, double > selector) |
Computes the sum of the sequence of T:System.Double values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? double | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, double?> selector) |
Computes the sum of the sequence of nullable T:System.Double values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static decimal | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, decimal > selector) |
Computes the sum of the sequence of T:System.Decimal values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? decimal | Sum< TSource > (this IEnumerable< TSource > source, Func< TSource, decimal?> selector) |
Computes the sum of the sequence of nullable T:System.Decimal values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static int | Min (this IEnumerable< int > source) |
Returns the minimum value in a sequence of T:System.Int32 values. More... | |
static ? int | Min (this IEnumerable< int?> source) |
Returns the minimum value in a sequence of nullable T:System.Int32 values. More... | |
static long | Min (this IEnumerable< long > source) |
Returns the minimum value in a sequence of T:System.Int64 values. More... | |
static ? long | Min (this IEnumerable< long?> source) |
Returns the minimum value in a sequence of nullable T:System.Int64 values. More... | |
static float | Min (this IEnumerable< float > source) |
Returns the minimum value in a sequence of T:System.Single values. More... | |
static ? float | Min (this IEnumerable< float?> source) |
Returns the minimum value in a sequence of nullable T:System.Single values. More... | |
static double | Min (this IEnumerable< double > source) |
Returns the minimum value in a sequence of T:System.Double values. More... | |
static ? double | Min (this IEnumerable< double?> source) |
Returns the minimum value in a sequence of nullable T:System.Double values. More... | |
static decimal | Min (this IEnumerable< decimal > source) |
Returns the minimum value in a sequence of T:System.Decimal values. More... | |
static ? decimal | Min (this IEnumerable< decimal?> source) |
Returns the minimum value in a sequence of nullable T:System.Decimal values. More... | |
static TSource | Min< TSource > (this IEnumerable< TSource > source) |
Returns the minimum value in a generic sequence. More... | |
static int | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, int > selector) |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Int32 value. More... | |
static ? int | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, int?> selector) |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Int32 value. More... | |
static long | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, long > selector) |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Int64 value. More... | |
static ? long | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, long?> selector) |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Int64 value. More... | |
static float | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, float > selector) |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Single value. More... | |
static ? float | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, float?> selector) |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Single value. More... | |
static double | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, double > selector) |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Double value. More... | |
static ? double | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, double?> selector) |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Double value. More... | |
static decimal | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, decimal > selector) |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Decimal value. More... | |
static ? decimal | Min< TSource > (this IEnumerable< TSource > source, Func< TSource, decimal?> selector) |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Decimal value. More... | |
static TResult | Min< TSource, TResult > (this IEnumerable< TSource > source, Func< TSource, TResult > selector) |
Invokes a transform function on each element of a generic sequence and returns the minimum resulting value. More... | |
static int | Max (this IEnumerable< int > source) |
Returns the maximum value in a sequence of T:System.Int32 values. More... | |
static ? int | Max (this IEnumerable< int?> source) |
Returns the maximum value in a sequence of nullable T:System.Int32 values. More... | |
static long | Max (this IEnumerable< long > source) |
Returns the maximum value in a sequence of T:System.Int64 values. More... | |
static ? long | Max (this IEnumerable< long?> source) |
Returns the maximum value in a sequence of nullable T:System.Int64 values. More... | |
static double | Max (this IEnumerable< double > source) |
Returns the maximum value in a sequence of T:System.Double values. More... | |
static ? double | Max (this IEnumerable< double?> source) |
Returns the maximum value in a sequence of nullable T:System.Double values. More... | |
static float | Max (this IEnumerable< float > source) |
Returns the maximum value in a sequence of T:System.Single values. More... | |
static ? float | Max (this IEnumerable< float?> source) |
Returns the maximum value in a sequence of nullable T:System.Single values. More... | |
static decimal | Max (this IEnumerable< decimal > source) |
Returns the maximum value in a sequence of T:System.Decimal values. More... | |
static ? decimal | Max (this IEnumerable< decimal?> source) |
Returns the maximum value in a sequence of nullable T:System.Decimal values. More... | |
static TSource | Max< TSource > (this IEnumerable< TSource > source) |
Returns the maximum value in a generic sequence. More... | |
static int | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, int > selector) |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Int32 value. More... | |
static ? int | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, int?> selector) |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Int32 value. More... | |
static long | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, long > selector) |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Int64 value. More... | |
static ? long | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, long?> selector) |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Int64 value. More... | |
static float | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, float > selector) |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Single value. More... | |
static ? float | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, float?> selector) |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Single value. More... | |
static double | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, double > selector) |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Double value. More... | |
static ? double | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, double?> selector) |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Double value. More... | |
static decimal | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, decimal > selector) |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Decimal value. More... | |
static ? decimal | Max< TSource > (this IEnumerable< TSource > source, Func< TSource, decimal?> selector) |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Decimal value. More... | |
static TResult | Max< TSource, TResult > (this IEnumerable< TSource > source, Func< TSource, TResult > selector) |
Invokes a transform function on each element of a generic sequence and returns the maximum resulting value. More... | |
static double | Average (this IEnumerable< int > source) |
Computes the average of a sequence of T:System.Int32 values. More... | |
static ? double | Average (this IEnumerable< int?> source) |
Computes the average of a sequence of nullable T:System.Int32 values. More... | |
static double | Average (this IEnumerable< long > source) |
Computes the average of a sequence of T:System.Int64 values. More... | |
static ? double | Average (this IEnumerable< long?> source) |
Computes the average of a sequence of nullable T:System.Int64 values. More... | |
static float | Average (this IEnumerable< float > source) |
Computes the average of a sequence of T:System.Single values. More... | |
static ? float | Average (this IEnumerable< float?> source) |
Computes the average of a sequence of nullable T:System.Single values. More... | |
static double | Average (this IEnumerable< double > source) |
Computes the average of a sequence of T:System.Double values. More... | |
static ? double | Average (this IEnumerable< double?> source) |
Computes the average of a sequence of nullable T:System.Double values. More... | |
static decimal | Average (this IEnumerable< decimal > source) |
Computes the average of a sequence of T:System.Decimal values. More... | |
static ? decimal | Average (this IEnumerable< decimal?> source) |
Computes the average of a sequence of nullable T:System.Decimal values. More... | |
static double | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, int > selector) |
Computes the average of a sequence of T:System.Int32 values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? double | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, int?> selector) |
Computes the average of a sequence of nullable T:System.Int32 values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static double | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, long > selector) |
Computes the average of a sequence of T:System.Int64 values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? double | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, long?> selector) |
Computes the average of a sequence of nullable T:System.Int64 values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static float | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, float > selector) |
Computes the average of a sequence of T:System.Single values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? float | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, float?> selector) |
Computes the average of a sequence of nullable T:System.Single values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static double | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, double > selector) |
Computes the average of a sequence of T:System.Double values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? double | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, double?> selector) |
Computes the average of a sequence of nullable T:System.Double values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static decimal | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, decimal > selector) |
Computes the average of a sequence of T:System.Decimal values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static ? decimal | Average< TSource > (this IEnumerable< TSource > source, Func< TSource, decimal?> selector) |
Computes the average of a sequence of nullable T:System.Decimal values that are obtained by invoking a transform function on each element of the input sequence. More... | |
static IEnumerable< TSource > | Append< TSource > (this IEnumerable< TSource > source, TSource element) |
Appends a value to the end of the sequence. More... | |
static IEnumerable< TSource > | Prepend< TSource > (this IEnumerable< TSource > source, TSource element) |
Adds a value to the beginning of the sequence. More... | |
Provides a set of static
(Shared
in Visual Basic) methods for querying objects that implement T:System.Collections.Generic.IEnumerable`1.
Definition at line 9 of file Enumerable.cs.
|
static |
Applies an accumulator function over a sequence.
source | An T:System.Collections.Generic.IEnumerable`1 to aggregate over. |
func | An accumulator function to be invoked on each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or func is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 3392 of file Enumerable.cs.
|
static |
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
source | An T:System.Collections.Generic.IEnumerable`1 to aggregate over. |
seed | The initial accumulator value. |
func | An accumulator function to be invoked on each element. |
TSource | The type of the elements of source . |
TAccumulate | The type of the accumulator value. |
T:System.ArgumentNullException | source or func is null . |
Definition at line 3427 of file Enumerable.cs.
|
static |
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.
source | An T:System.Collections.Generic.IEnumerable`1 to aggregate over. |
seed | The initial accumulator value. |
func | An accumulator function to be invoked on each element. |
resultSelector | A function to transform the final accumulator value into the result value. |
TSource | The type of the elements of source . |
TAccumulate | The type of the accumulator value. |
TResult | The type of the resulting value. |
T:System.ArgumentNullException | source or func or resultSelector is null . |
Definition at line 3457 of file Enumerable.cs.
|
static |
Determines whether all elements of a sequence satisfy a condition.
source | An T:System.Collections.Generic.IEnumerable`1 that contains the elements to apply the predicate to. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
true
if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, false
.T:System.ArgumentNullException | source or predicate is null . |
Definition at line 3198 of file Enumerable.cs.
|
static |
Determines whether a sequence contains any elements.
source | The T:System.Collections.Generic.IEnumerable`1 to check for emptiness. |
TSource | The type of the elements of source . |
true
if the source sequence contains any elements; otherwise, false
.T:System.ArgumentNullException | source is null . |
Definition at line 3144 of file Enumerable.cs.
|
static |
Determines whether any element of a sequence satisfies a condition.
source | An T:System.Collections.Generic.IEnumerable`1 whose elements to apply the predicate to. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
true
if any elements in the source sequence pass the test in the specified predicate; otherwise, false
.T:System.ArgumentNullException | source or predicate is null . |
Definition at line 3169 of file Enumerable.cs.
|
static |
Appends a value to the end of the sequence.
source | A sequence of values. |
element | The value to append to source . |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 5302 of file Enumerable.cs.
|
static |
Returns the input typed as T:System.Collections.Generic.IEnumerable`1.
source | The sequence to type as T:System.Collections.Generic.IEnumerable`1. |
TSource | The type of the elements of source . |
Definition at line 2258 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Int32 values.
source | A sequence of T:System.Int32 values to calculate the average of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4860 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Int32 values.
source | A sequence of nullable T:System.Int32 values to calculate the average of. |
null
if the source sequence is empty or contains only values that are null
.T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The sum of the elements in the sequence is larger than F:System.Int64.MaxValue. |
Definition at line 4890 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Int64 values.
source | A sequence of T:System.Int64 values to calculate the average of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4924 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Int64 values.
source | A sequence of nullable T:System.Int64 values to calculate the average of. |
null
if the source sequence is empty or contains only values that are null
.T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The sum of the elements in the sequence is larger than F:System.Int64.MaxValue. |
Definition at line 4954 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Single values.
source | A sequence of T:System.Single values to calculate the average of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4988 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Single values.
source | A sequence of nullable T:System.Single values to calculate the average of. |
null
if the source sequence is empty or contains only values that are null
.T:System.ArgumentNullException | source is null . |
Definition at line 5014 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Double values.
source | A sequence of T:System.Double values to calculate the average of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 5045 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Double values.
source | A sequence of nullable T:System.Double values to calculate the average of. |
null
if the source sequence is empty or contains only values that are null
.T:System.ArgumentNullException | source is null . |
Definition at line 5071 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Decimal values.
source | A sequence of T:System.Decimal values to calculate the average of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 5102 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Decimal values.
source | A sequence of nullable T:System.Decimal values to calculate the average of. |
null
if the source sequence is empty or contains only values that are null
.T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The sum of the elements in the sequence is larger than F:System.Decimal.MaxValue. |
Definition at line 5129 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Int32 values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values to calculate the average of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
T:System.OverflowException | The sum of the elements in the sequence is larger than F:System.Int64.MaxValue. |
Definition at line 5163 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Int32 values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values to calculate the average of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
null
if the source sequence is empty or contains only values that are null
.T:System.ArgumentNullException | source or selector is null . |
T:System.OverflowException | The sum of the elements in the sequence is larger than F:System.Int64.MaxValue. |
Definition at line 5177 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Int64 values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values to calculate the average of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source. |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
T:System.OverflowException | The sum of the elements in the sequence is larger than F:System.Int64.MaxValue. |
Definition at line 5193 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Int64 values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values to calculate the average of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
null
if the source sequence is empty or contains only values that are null
.Definition at line 5204 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Single values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values to calculate the average of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 5219 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Single values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values to calculate the average of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
null
if the source sequence is empty or contains only values that are null
.T:System.ArgumentNullException | source or selector is null . |
Definition at line 5232 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Double values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values to calculate the average of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 5247 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Double values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values to calculate the average of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
null
if the source sequence is empty or contains only values that are null
.T:System.ArgumentNullException | source or selector is null . |
Definition at line 5260 of file Enumerable.cs.
|
static |
Computes the average of a sequence of T:System.Decimal values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate an average. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
T:System.OverflowException | The sum of the elements in the sequence is larger than F:System.Decimal.MaxValue. |
Definition at line 5276 of file Enumerable.cs.
|
static |
Computes the average of a sequence of nullable T:System.Decimal values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values to calculate the average of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
null
if the source sequence is empty or contains only values that are null
.T:System.ArgumentNullException | source or selector is null . |
T:System.OverflowException | The sum of the elements in the sequence is larger than F:System.Decimal.MaxValue. |
Definition at line 5290 of file Enumerable.cs.
|
static |
Casts the elements of an T:System.Collections.IEnumerable to the specified type.
source | The T:System.Collections.IEnumerable that contains the elements to be cast to type TResult . |
TResult | The type to cast the elements of source to. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidCastException | An element in the sequence cannot be cast to type TResult . |
Definition at line 2529 of file Enumerable.cs.
|
static |
Concatenates two sequences.
first | The first sequence to concatenate. |
second | The sequence to concatenate to the first sequence. |
TSource | The type of the elements of the input sequences. |
T:System.ArgumentNullException | first or second is null . |
Definition at line 1878 of file Enumerable.cs.
|
static |
Determines whether a sequence contains a specified element by using the default equality comparer.
source | A sequence in which to locate a value. |
value | The value to locate in the sequence. |
TSource | The type of the elements of source . |
true
if the source sequence contains an element that has the specified value; otherwise, false
.T:System.ArgumentNullException | source is null . |
Definition at line 3347 of file Enumerable.cs.
|
static |
Determines whether a sequence contains a specified element by using a specified T:System.Collections.Generic.IEqualityComparer`1.
source | A sequence in which to locate a value. |
value | The value to locate in the sequence. |
comparer | An equality comparer to compare values. |
TSource | The type of the elements of source . |
true
if the source sequence contains an element that has the specified value; otherwise, false
.T:System.ArgumentNullException | source is null . |
Definition at line 3362 of file Enumerable.cs.
|
static |
Returns the number of elements in a sequence.
source | A sequence that contains elements to be counted. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The number of elements in source is larger than F:System.Int32.MaxValue. |
Definition at line 3226 of file Enumerable.cs.
|
static |
Returns a number that represents how many elements in the specified sequence satisfy a condition.
source | A sequence that contains elements to be tested and counted. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
T:System.OverflowException | The number of elements in source is larger than F:System.Int32.MaxValue. |
Definition at line 3262 of file Enumerable.cs.
|
static |
Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.
source | The sequence to return a default value for if it is empty. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 2455 of file Enumerable.cs.
|
static |
Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.
source | The sequence to return the specified value for if it is empty. |
defaultValue | The value to return if the sequence is empty. |
TSource | The type of the elements of source . |
Definition at line 2466 of file Enumerable.cs.
|
static |
Returns distinct elements from a sequence by using the default equality comparer to compare values.
source | The sequence to remove duplicate elements from. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 1952 of file Enumerable.cs.
|
static |
Returns distinct elements from a sequence by using a specified T:System.Collections.Generic.IEqualityComparer`1 to compare values.
source | The sequence to remove duplicate elements from. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare values. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 1969 of file Enumerable.cs.
|
static |
Returns the element at a specified index in a sequence.
source | An T:System.Collections.Generic.IEnumerable`1 to return an element from. |
index | The zero-based index of the element to retrieve. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
T:System.ArgumentOutOfRangeException | index is less than 0 or greater than or equal to the number of elements in source . |
Definition at line 3004 of file Enumerable.cs.
|
static |
Returns the element at a specified index in a sequence or a default value if the index is out of range.
source | An T:System.Collections.Generic.IEnumerable`1 to return an element from. |
index | The zero-based index of the element to retrieve. |
TSource | The type of the elements of source . |
default
(TSource ) if the index is outside the bounds of the source sequence; otherwise, the element at the specified position in the source sequence.T:System.ArgumentNullException | source is null . |
Definition at line 3042 of file Enumerable.cs.
|
static |
Returns an empty T:System.Collections.Generic.IEnumerable`1 that has the specified type argument.
TResult | The type to assign to the type parameter of the returned generic T:System.Collections.Generic.IEnumerable`1. |
Definition at line 3131 of file Enumerable.cs.
|
static |
Produces the set difference of two sequences by using the default equality comparer to compare values.
first | An T:System.Collections.Generic.IEnumerable`1 whose elements that are not also in second will be returned. |
second | An T:System.Collections.Generic.IEnumerable`1 whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence. |
TSource | The type of the elements of the input sequences. |
T:System.ArgumentNullException | first or second is null . |
Definition at line 2119 of file Enumerable.cs.
|
static |
Produces the set difference of two sequences by using the specified T:System.Collections.Generic.IEqualityComparer`1 to compare values.
first | An T:System.Collections.Generic.IEnumerable`1 whose elements that are not also in second will be returned. |
second | An T:System.Collections.Generic.IEnumerable`1 whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare values. |
TSource | The type of the elements of the input sequences. |
T:System.ArgumentNullException | first or second is null . |
Definition at line 2141 of file Enumerable.cs.
|
static |
Returns the first element of a sequence.
source | The T:System.Collections.Generic.IEnumerable`1 to return the first element of. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | The source sequence is empty. |
Definition at line 2559 of file Enumerable.cs.
|
static |
Returns the first element in a sequence that satisfies a specified condition.
source | An T:System.Collections.Generic.IEnumerable`1 to return an element from. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
T:System.InvalidOperationException | No element satisfies the condition in predicate .-or-The source sequence is empty. |
Definition at line 2595 of file Enumerable.cs.
|
static |
Returns the first element of a sequence, or a default value if the sequence contains no elements.
source | The T:System.Collections.Generic.IEnumerable`1 to return the first element of. |
TSource | The type of the elements of source . |
default
(TSource ) if source is empty; otherwise, the first element in source .T:System.ArgumentNullException | source is null . |
Definition at line 2623 of file Enumerable.cs.
|
static |
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
source | An T:System.Collections.Generic.IEnumerable`1 to return an element from. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
default
(TSource ) if source is empty or if no element passes the test specified by predicate ; otherwise, the first element in source that passes the test specified by predicate .T:System.ArgumentNullException | source or predicate is null . |
Definition at line 2659 of file Enumerable.cs.
|
static |
Groups the elements of a sequence according to a specified key selector function.
source | An T:System.Collections.Generic.IEnumerable`1 whose elements to group. |
keySelector | A function to extract the key for each element. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1755 of file Enumerable.cs.
|
static |
Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.
source | An T:System.Collections.Generic.IEnumerable`1 whose elements to group. |
keySelector | A function to extract the key for each element. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1770 of file Enumerable.cs.
|
static |
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.
source | An T:System.Collections.Generic.IEnumerable`1 whose elements to group. |
keySelector | A function to extract the key for each element. |
elementSelector | A function to map each source element to an element in the T:System.Linq.IGrouping`2. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TElement | The type of the elements in the T:System.Linq.IGrouping`2. |
T:System.ArgumentNullException | source or keySelector or elementSelector is null . |
Definition at line 1786 of file Enumerable.cs.
|
static |
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.
source | An T:System.Collections.Generic.IEnumerable`1 whose elements to group. |
keySelector | A function to extract the key for each element. |
elementSelector | A function to map each source element to an element in an T:System.Linq.IGrouping`2. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TElement | The type of the elements in the T:System.Linq.IGrouping`2. |
T:System.ArgumentNullException | source or keySelector or elementSelector is null . |
Definition at line 1803 of file Enumerable.cs.
|
static |
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.
source | An T:System.Collections.Generic.IEnumerable`1 whose elements to group. |
keySelector | A function to extract the key for each element. |
elementSelector | A function to map each source element to an element in an T:System.Linq.IGrouping`2. |
resultSelector | A function to create a result value from each group. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TElement | The type of the elements in each T:System.Linq.IGrouping`2. |
TResult | The type of the result value returned by resultSelector . |
Definition at line 1833 of file Enumerable.cs.
|
static |
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.
source | An T:System.Collections.Generic.IEnumerable`1 whose elements to group. |
keySelector | A function to extract the key for each element. |
elementSelector | A function to map each source element to an element in an T:System.Linq.IGrouping`2. |
resultSelector | A function to create a result value from each group. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare keys with. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TElement | The type of the elements in each T:System.Linq.IGrouping`2. |
TResult | The type of the result value returned by resultSelector . |
Definition at line 1865 of file Enumerable.cs.
|
static |
Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.
source | An T:System.Collections.Generic.IEnumerable`1 whose elements to group. |
keySelector | A function to extract the key for each element. |
resultSelector | A function to create a result value from each group. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TResult | The type of the result value returned by resultSelector . |
Definition at line 1817 of file Enumerable.cs.
|
static |
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.
source | An T:System.Collections.Generic.IEnumerable`1 whose elements to group. |
keySelector | A function to extract the key for each element. |
resultSelector | A function to create a result value from each group. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare keys with. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TResult | The type of the result value returned by resultSelector . |
Definition at line 1848 of file Enumerable.cs.
|
static |
Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.
outer | The first sequence to join. |
inner | The sequence to join to the first sequence. |
outerKeySelector | A function to extract the join key from each element of the first sequence. |
innerKeySelector | A function to extract the join key from each element of the second sequence. |
resultSelector | A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence. |
TOuter | The type of the elements of the first sequence. |
TInner | The type of the elements of the second sequence. |
TKey | The type of the keys returned by the key selector functions. |
TResult | The type of the result elements. |
T:System.ArgumentNullException | outer or inner or outerKeySelector or innerKeySelector or resultSelector is null . |
Definition at line 1540 of file Enumerable.cs.
|
static |
Correlates the elements of two sequences based on key equality and groups the results. A specified T:System.Collections.Generic.IEqualityComparer`1 is used to compare keys.
outer | The first sequence to join. |
inner | The sequence to join to the first sequence. |
outerKeySelector | A function to extract the join key from each element of the first sequence. |
innerKeySelector | A function to extract the join key from each element of the second sequence. |
resultSelector | A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to hash and compare keys. |
TOuter | The type of the elements of the first sequence. |
TInner | The type of the elements of the second sequence. |
TKey | The type of the keys returned by the key selector functions. |
TResult | The type of the result elements. |
T:System.ArgumentNullException | outer or inner or outerKeySelector or innerKeySelector or resultSelector is null . |
Definition at line 1580 of file Enumerable.cs.
|
static |
Produces the set intersection of two sequences by using the default equality comparer to compare values.
first | An T:System.Collections.Generic.IEnumerable`1 whose distinct elements that also appear in second will be returned. |
second | An T:System.Collections.Generic.IEnumerable`1 whose distinct elements that also appear in the first sequence will be returned. |
TSource | The type of the elements of the input sequences. |
T:System.ArgumentNullException | first or second is null . |
Definition at line 2060 of file Enumerable.cs.
|
static |
Produces the set intersection of two sequences by using the specified T:System.Collections.Generic.IEqualityComparer`1 to compare values.
first | An T:System.Collections.Generic.IEnumerable`1 whose distinct elements that also appear in second will be returned. |
second | An T:System.Collections.Generic.IEnumerable`1 whose distinct elements that also appear in the first sequence will be returned. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare values. |
TSource | The type of the elements of the input sequences. |
T:System.ArgumentNullException | first or second is null . |
Definition at line 2082 of file Enumerable.cs.
|
static |
Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
outer | The first sequence to join. |
inner | The sequence to join to the first sequence. |
outerKeySelector | A function to extract the join key from each element of the first sequence. |
innerKeySelector | A function to extract the join key from each element of the second sequence. |
resultSelector | A function to create a result element from two matching elements. |
TOuter | The type of the elements of the first sequence. |
TInner | The type of the elements of the second sequence. |
TKey | The type of the keys returned by the key selector functions. |
TResult | The type of the result elements. |
T:System.ArgumentNullException | outer or inner or outerKeySelector or innerKeySelector or resultSelector is null . |
Definition at line 1445 of file Enumerable.cs.
|
static |
Correlates the elements of two sequences based on matching keys. A specified T:System.Collections.Generic.IEqualityComparer`1 is used to compare keys.
outer | The first sequence to join. |
inner | The sequence to join to the first sequence. |
outerKeySelector | A function to extract the join key from each element of the first sequence. |
innerKeySelector | A function to extract the join key from each element of the second sequence. |
resultSelector | A function to create a result element from two matching elements. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to hash and compare keys. |
TOuter | The type of the elements of the first sequence. |
TInner | The type of the elements of the second sequence. |
TKey | The type of the keys returned by the key selector functions. |
TResult | The type of the result elements. |
T:System.ArgumentNullException | outer or inner or outerKeySelector or innerKeySelector or resultSelector is null . |
Definition at line 1485 of file Enumerable.cs.
|
static |
Returns the last element of a sequence.
source | An T:System.Collections.Generic.IEnumerable`1 to return the last element of. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | The source sequence is empty. |
Definition at line 2687 of file Enumerable.cs.
|
static |
Returns the last element of a sequence that satisfies a specified condition.
source | An T:System.Collections.Generic.IEnumerable`1 to return an element from. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
T:System.InvalidOperationException | No element satisfies the condition in predicate .-or-The source sequence is empty. |
Definition at line 2730 of file Enumerable.cs.
|
static |
Returns the last element of a sequence, or a default value if the sequence contains no elements.
source | An T:System.Collections.Generic.IEnumerable`1 to return the last element of. |
TSource | The type of the elements of source . |
default
(TSource ) if the source sequence is empty; otherwise, the last element in the T:System.Collections.Generic.IEnumerable`1.T:System.ArgumentNullException | source is null . |
Definition at line 2765 of file Enumerable.cs.
|
static |
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.
source | An T:System.Collections.Generic.IEnumerable`1 to return an element from. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
default
(TSource ) if the sequence is empty or if no elements pass the test in the predicate function; otherwise, the last element that passes the test in the predicate function.T:System.ArgumentNullException | source or predicate is null . |
Definition at line 2808 of file Enumerable.cs.
|
static |
Returns an T:System.Int64 that represents the total number of elements in a sequence.
source | An T:System.Collections.Generic.IEnumerable`1 that contains the elements to be counted. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The number of elements exceeds F:System.Int64.MaxValue. |
Definition at line 3291 of file Enumerable.cs.
|
static |
Returns an T:System.Int64 that represents how many elements in a sequence satisfy a condition.
source | An T:System.Collections.Generic.IEnumerable`1 that contains the elements to be counted. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
T:System.OverflowException | The number of matching elements exceeds F:System.Int64.MaxValue. |
Definition at line 3317 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of T:System.Int32 values.
source | A sequence of T:System.Int32 values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4352 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of nullable T:System.Int32 values.
source | A sequence of nullable T:System.Int32 values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 4388 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of T:System.Int64 values.
source | A sequence of T:System.Int64 values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4413 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of nullable T:System.Int64 values.
source | A sequence of nullable T:System.Int64 values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 4449 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of T:System.Double values.
source | A sequence of T:System.Double values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4474 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of nullable T:System.Double values.
source | A sequence of nullable T:System.Double values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 4510 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of T:System.Single values.
source | A sequence of T:System.Single values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4535 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of nullable T:System.Single values.
source | A sequence of nullable T:System.Single values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 4571 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of T:System.Decimal values.
source | A sequence of T:System.Decimal values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4596 of file Enumerable.cs.
|
static |
Returns the maximum value in a sequence of nullable T:System.Decimal values.
source | A sequence of nullable T:System.Decimal values to determine the maximum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 4632 of file Enumerable.cs.
|
static |
Returns the maximum value in a generic sequence.
source | A sequence of values to determine the maximum value of. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 4656 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Int32 value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4708 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Int32 value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4721 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Int64 value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4736 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Int64 value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4749 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Single value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4764 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Single value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4777 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Double value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4792 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Double value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4805 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum T:System.Decimal value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4820 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the maximum nullable T:System.Decimal value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4833 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a generic sequence and returns the maximum resulting value.
source | A sequence of values to determine the maximum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
TResult | The type of the value returned by selector . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4847 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of T:System.Int32 values.
source | A sequence of T:System.Int32 values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 3844 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of nullable T:System.Int32 values.
source | A sequence of nullable T:System.Int32 values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 3880 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of T:System.Int64 values.
source | A sequence of T:System.Int64 values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 3905 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of nullable T:System.Int64 values.
source | A sequence of nullable T:System.Int64 values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 3941 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of T:System.Single values.
source | A sequence of T:System.Single values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 3966 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of nullable T:System.Single values.
source | A sequence of nullable T:System.Single values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 4002 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of T:System.Double values.
source | A sequence of T:System.Double values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4027 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of nullable T:System.Double values.
source | A sequence of nullable T:System.Double values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 4063 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of T:System.Decimal values.
source | A sequence of T:System.Decimal values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4088 of file Enumerable.cs.
|
static |
Returns the minimum value in a sequence of nullable T:System.Decimal values.
source | A sequence of nullable T:System.Decimal values to determine the minimum value of. |
T:System.ArgumentNullException | source is null . |
Definition at line 4124 of file Enumerable.cs.
|
static |
Returns the minimum value in a generic sequence.
source | A sequence of values to determine the minimum value of. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 4148 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Int32 value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4200 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Int32 value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4213 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Int64 value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4228 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Int64 value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4241 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Single value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4256 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Single value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4269 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Double value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4284 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Double value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4297 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum T:System.Decimal value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.InvalidOperationException | source contains no elements. |
Definition at line 4312 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a sequence and returns the minimum nullable T:System.Decimal value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4325 of file Enumerable.cs.
|
static |
Invokes a transform function on each element of a generic sequence and returns the minimum resulting value.
source | A sequence of values to determine the minimum value of. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
TResult | The type of the value returned by selector . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 4339 of file Enumerable.cs.
|
static |
Filters the elements of an T:System.Collections.IEnumerable based on a specified type.
source | The T:System.Collections.IEnumerable whose elements to filter. |
TResult | The type to filter the elements of the sequence on. |
T:System.ArgumentNullException | source is null . |
Definition at line 2501 of file Enumerable.cs.
|
static |
Sorts the elements of a sequence in ascending order according to a key.
source | A sequence of values to order. |
keySelector | A function to extract a key from an element. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1623 of file Enumerable.cs.
|
static |
Sorts the elements of a sequence in ascending order by using a specified comparer.
source | A sequence of values to order. |
keySelector | A function to extract a key from an element. |
comparer | An T:System.Collections.Generic.IComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1638 of file Enumerable.cs.
|
static |
Sorts the elements of a sequence in descending order according to a key.
source | A sequence of values to order. |
keySelector | A function to extract a key from an element. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1652 of file Enumerable.cs.
|
static |
Sorts the elements of a sequence in descending order by using a specified comparer.
source | A sequence of values to order. |
keySelector | A function to extract a key from an element. |
comparer | An T:System.Collections.Generic.IComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1667 of file Enumerable.cs.
|
static |
Adds a value to the beginning of the sequence.
source | A sequence of values. |
element | The value to prepend to source . |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 5323 of file Enumerable.cs.
|
static |
Generates a sequence of integral numbers within a specified range.
start | The value of the first integer in the sequence. |
count | The number of sequential integers to generate. |
T:System.ArgumentOutOfRangeException | count is less than 0.-or- start + count -1 is larger than F:System.Int32.MaxValue. |
Definition at line 3084 of file Enumerable.cs.
|
static |
Generates a sequence that contains one repeated value.
element | The value to be repeated. |
count | The number of times to repeat the value in the generated sequence. |
TResult | The type of the value to be repeated in the result sequence. |
T:System.ArgumentOutOfRangeException | count is less than 0. |
Definition at line 3110 of file Enumerable.cs.
|
static |
Inverts the order of the elements in a sequence.
source | A sequence of values to reverse. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 2177 of file Enumerable.cs.
|
static |
Projects each element of a sequence into a new form.
source | A sequence of values to invoke a transform function on. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
TResult | The type of the value returned by selector . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 996 of file Enumerable.cs.
|
static |
Projects each element of a sequence into a new form by incorporating the element's index.
source | A sequence of values to invoke a transform function on. |
selector | A transform function to apply to each source element; the second parameter of the function represents the index of the source element. |
TSource | The type of the elements of source . |
TResult | The type of the value returned by selector . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 1030 of file Enumerable.cs.
|
static |
Projects each element of a sequence to an T:System.Collections.Generic.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.
source | A sequence of values to project. |
collectionSelector | A transform function to apply to each source element; the second parameter of the function represents the index of the source element. |
resultSelector | A transform function to apply to each element of the intermediate sequence. |
TSource | The type of the elements of source . |
TCollection | The type of the intermediate elements collected by collectionSelector . |
TResult | The type of the elements of the resulting sequence. |
T:System.ArgumentNullException | source or collectionSelector or resultSelector is null . |
Definition at line 1149 of file Enumerable.cs.
|
static |
Projects each element of a sequence to an T:System.Collections.Generic.IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.
source | A sequence of values to project. |
collectionSelector | A transform function to apply to each element of the input sequence. |
resultSelector | A transform function to apply to each element of the intermediate sequence. |
TSource | The type of the elements of source . |
TCollection | The type of the intermediate elements collected by collectionSelector . |
TResult | The type of the elements of the resulting sequence. |
T:System.ArgumentNullException | source or collectionSelector or resultSelector is null . |
Definition at line 1190 of file Enumerable.cs.
|
static |
Projects each element of a sequence to an T:System.Collections.Generic.IEnumerable`1 and flattens the resulting sequences into one sequence.
source | A sequence of values to project. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
TResult | The type of the elements of the sequence returned by selector . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 1079 of file Enumerable.cs.
|
static |
Projects each element of a sequence to an T:System.Collections.Generic.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.
source | A sequence of values to project. |
selector | A transform function to apply to each source element; the second parameter of the function represents the index of the source element. |
TSource | The type of the elements of source . |
TResult | The type of the elements of the sequence returned by selector . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 1112 of file Enumerable.cs.
|
static |
Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.
first | An T:System.Collections.Generic.IEnumerable`1 to compare to second . |
second | An T:System.Collections.Generic.IEnumerable`1 to compare to the first sequence. |
TSource | The type of the elements of the input sequences. |
true
if the two source sequences are of equal length and their corresponding elements are equal according to the default equality comparer for their type; otherwise, false
.T:System.ArgumentNullException | first or second is null . |
Definition at line 2204 of file Enumerable.cs.
|
static |
Determines whether two sequences are equal by comparing their elements by using a specified T:System.Collections.Generic.IEqualityComparer`1.
first | An T:System.Collections.Generic.IEnumerable`1 to compare to second . |
second | An T:System.Collections.Generic.IEnumerable`1 to compare to the first sequence. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to use to compare elements. |
TSource | The type of the elements of the input sequences. |
true
if the two source sequences are of equal length and their corresponding elements compare equal according to comparer ; otherwise, false
.T:System.ArgumentNullException | first or second is null . |
Definition at line 2219 of file Enumerable.cs.
|
static |
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
source | An T:System.Collections.Generic.IEnumerable`1 to return the single element of. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | The input sequence contains more than one element.-or-The input sequence is empty. |
Definition at line 2837 of file Enumerable.cs.
|
static |
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
source | An T:System.Collections.Generic.IEnumerable`1 to return a single element from. |
predicate | A function to test an element for a condition. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
T:System.InvalidOperationException | No element satisfies the condition in predicate .-or-More than one element satisfies the condition in predicate .-or-The source sequence is empty. |
Definition at line 2881 of file Enumerable.cs.
|
static |
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.
source | An T:System.Collections.Generic.IEnumerable`1 to return the single element of. |
TSource | The type of the elements of source . |
default
(TSource ) if the sequence contains no elements.T:System.ArgumentNullException | source is null . |
T:System.InvalidOperationException | The input sequence contains more than one element. |
Definition at line 2920 of file Enumerable.cs.
|
static |
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.
source | An T:System.Collections.Generic.IEnumerable`1 to return a single element from. |
predicate | A function to test an element for a condition. |
TSource | The type of the elements of source . |
default
(TSource ) if no such element is found.T:System.ArgumentNullException | source or predicate is null . |
Definition at line 2963 of file Enumerable.cs.
|
static |
Bypasses a specified number of elements in a sequence and then returns the remaining elements.
source | An T:System.Collections.Generic.IEnumerable`1 to return elements from. |
count | The number of elements to skip before returning the remaining elements. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 1328 of file Enumerable.cs.
|
static |
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
source | An T:System.Collections.Generic.IEnumerable`1 to return elements from. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
Definition at line 1363 of file Enumerable.cs.
|
static |
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.
source | An T:System.Collections.Generic.IEnumerable`1 to return elements from. |
predicate | A function to test each source element for a condition; the second parameter of the function represents the index of the source element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
Definition at line 1400 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of T:System.Int32 values.
source | A sequence of T:System.Int32 values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The sum is larger than F:System.Int32.MaxValue. |
Definition at line 3486 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of nullable T:System.Int32 values.
source | A sequence of nullable T:System.Int32 values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The sum is larger than F:System.Int32.MaxValue. |
Definition at line 3507 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of T:System.Int64 values.
source | A sequence of T:System.Int64 values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The sum is larger than F:System.Int64.MaxValue. |
Definition at line 3531 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of nullable T:System.Int64 values.
source | A sequence of nullable T:System.Int64 values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The sum is larger than F:System.Int64.MaxValue. |
Definition at line 3552 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of T:System.Single values.
source | A sequence of T:System.Single values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
Definition at line 3575 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of nullable T:System.Single values.
source | A sequence of nullable T:System.Single values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
Definition at line 3595 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of T:System.Double values.
source | A sequence of T:System.Double values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
Definition at line 3618 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of nullable T:System.Double values.
source | A sequence of nullable T:System.Double values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
Definition at line 3638 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of T:System.Decimal values.
source | A sequence of T:System.Decimal values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The sum is larger than F:System.Decimal.MaxValue. |
Definition at line 3662 of file Enumerable.cs.
|
static |
Computes the sum of a sequence of nullable T:System.Decimal values.
source | A sequence of nullable T:System.Decimal values to calculate the sum of. |
T:System.ArgumentNullException | source is null . |
T:System.OverflowException | The sum is larger than F:System.Decimal.MaxValue. |
Definition at line 3683 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of T:System.Int32 values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.OverflowException | The sum is larger than F:System.Int32.MaxValue. |
Definition at line 3709 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of nullable T:System.Int32 values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.OverflowException | The sum is larger than F:System.Int32.MaxValue. |
Definition at line 3723 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of T:System.Int64 values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.OverflowException | The sum is larger than F:System.Int64.MaxValue. |
Definition at line 3737 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of nullable T:System.Int64 values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.OverflowException | The sum is larger than F:System.Int64.MaxValue. |
Definition at line 3751 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of T:System.Single values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 3764 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of nullable T:System.Single values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 3777 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of T:System.Double values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 3790 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of nullable T:System.Double values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
Definition at line 3803 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of T:System.Decimal values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.OverflowException | The sum is larger than F:System.Decimal.MaxValue. |
Definition at line 3817 of file Enumerable.cs.
|
static |
Computes the sum of the sequence of nullable T:System.Decimal values that are obtained by invoking a transform function on each element of the input sequence.
source | A sequence of values that are used to calculate a sum. |
selector | A transform function to apply to each element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or selector is null . |
T:System.OverflowException | The sum is larger than F:System.Decimal.MaxValue. |
Definition at line 3831 of file Enumerable.cs.
|
static |
Returns a specified number of contiguous elements from the start of a sequence.
source | The sequence to return elements from. |
count | The number of elements to return. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 1226 of file Enumerable.cs.
|
static |
Returns elements from a sequence as long as a specified condition is true.
source | A sequence to return elements from. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
Definition at line 1260 of file Enumerable.cs.
|
static |
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.
source | The sequence to return elements from. |
predicate | A function to test each source element for a condition; the second parameter of the function represents the index of the source element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
Definition at line 1293 of file Enumerable.cs.
|
static |
Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.
source | An T:System.Linq.IOrderedEnumerable`1 that contains elements to sort. |
keySelector | A function to extract a key from each element. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1681 of file Enumerable.cs.
|
static |
Performs a subsequent ordering of the elements in a sequence in ascending order by using a specified comparer.
source | An T:System.Linq.IOrderedEnumerable`1 that contains elements to sort. |
keySelector | A function to extract a key from each element. |
comparer | An T:System.Collections.Generic.IComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1700 of file Enumerable.cs.
|
static |
Performs a subsequent ordering of the elements in a sequence in descending order, according to a key.
source | An T:System.Linq.IOrderedEnumerable`1 that contains elements to sort. |
keySelector | A function to extract a key from each element. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1718 of file Enumerable.cs.
|
static |
Performs a subsequent ordering of the elements in a sequence in descending order by using a specified comparer.
source | An T:System.Linq.IOrderedEnumerable`1 that contains elements to sort. |
keySelector | A function to extract a key from each element. |
comparer | An T:System.Collections.Generic.IComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 1737 of file Enumerable.cs.
|
static |
Creates an array from a T:System.Collections.Generic.IEnumerable`1.
source | An T:System.Collections.Generic.IEnumerable`1 to create an array from. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 2270 of file Enumerable.cs.
|
static |
Creates a T:System.Collections.Generic.Dictionary`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function.
source | An T:System.Collections.Generic.IEnumerable`1 to create a T:System.Collections.Generic.Dictionary`2 from. |
keySelector | A function to extract a key from each element. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null .-or- keySelector produces a key that is null . |
T:System.ArgumentException | keySelector produces duplicate keys for two elements. |
Definition at line 2307 of file Enumerable.cs.
|
static |
Creates a T:System.Collections.Generic.Dictionary`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function and key comparer.
source | An T:System.Collections.Generic.IEnumerable`1 to create a T:System.Collections.Generic.Dictionary`2 from. |
keySelector | A function to extract a key from each element. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the keys returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null .-or- keySelector produces a key that is null . |
T:System.ArgumentException | keySelector produces duplicate keys for two elements. |
Definition at line 2325 of file Enumerable.cs.
|
static |
Creates a T:System.Collections.Generic.Dictionary`2 from an T:System.Collections.Generic.IEnumerable`1 according to specified key selector and element selector functions.
source | An T:System.Collections.Generic.IEnumerable`1 to create a T:System.Collections.Generic.Dictionary`2 from. |
keySelector | A function to extract a key from each element. |
elementSelector | A transform function to produce a result element value from each element. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TElement | The type of the value returned by elementSelector . |
T:System.ArgumentNullException | source or keySelector or elementSelector is null .-or- keySelector produces a key that is null . |
T:System.ArgumentException | keySelector produces duplicate keys for two elements. |
Definition at line 2344 of file Enumerable.cs.
|
static |
Creates a T:System.Collections.Generic.Dictionary`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function, a comparer, and an element selector function.
source | An T:System.Collections.Generic.IEnumerable`1 to create a T:System.Collections.Generic.Dictionary`2 from. |
keySelector | A function to extract a key from each element. |
elementSelector | A transform function to produce a result element value from each element. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TElement | The type of the value returned by elementSelector . |
T:System.ArgumentNullException | source or keySelector or elementSelector is null .-or- keySelector produces a key that is null . |
T:System.ArgumentException | keySelector produces duplicate keys for two elements. |
Definition at line 2364 of file Enumerable.cs.
|
static |
Creates a T:System.Collections.Generic.List`1 from an T:System.Collections.Generic.IEnumerable`1.
source | The T:System.Collections.Generic.IEnumerable`1 to create a T:System.Collections.Generic.List`1 from. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source is null . |
Definition at line 2286 of file Enumerable.cs.
|
static |
Creates a T:System.Linq.Lookup`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function.
source | The T:System.Collections.Generic.IEnumerable`1 to create a T:System.Linq.Lookup`2 from. |
keySelector | A function to extract a key from each element. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 2395 of file Enumerable.cs.
|
static |
Creates a T:System.Linq.Lookup`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function and key comparer.
source | The T:System.Collections.Generic.IEnumerable`1 to create a T:System.Linq.Lookup`2 from. |
keySelector | A function to extract a key from each element. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
T:System.ArgumentNullException | source or keySelector is null . |
Definition at line 2410 of file Enumerable.cs.
|
static |
Creates a T:System.Linq.Lookup`2 from an T:System.Collections.Generic.IEnumerable`1 according to specified key selector and element selector functions.
source | The T:System.Collections.Generic.IEnumerable`1 to create a T:System.Linq.Lookup`2 from. |
keySelector | A function to extract a key from each element. |
elementSelector | A transform function to produce a result element value from each element. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TElement | The type of the value returned by elementSelector . |
T:System.ArgumentNullException | source or keySelector or elementSelector is null . |
Definition at line 2426 of file Enumerable.cs.
|
static |
Creates a T:System.Linq.Lookup`2 from an T:System.Collections.Generic.IEnumerable`1 according to a specified key selector function, a comparer and an element selector function.
source | The T:System.Collections.Generic.IEnumerable`1 to create a T:System.Linq.Lookup`2 from. |
keySelector | A function to extract a key from each element. |
elementSelector | A transform function to produce a result element value from each element. |
comparer | An T:System.Collections.Generic.IEqualityComparer`1 to compare keys. |
TSource | The type of the elements of source . |
TKey | The type of the key returned by keySelector . |
TElement | The type of the value returned by elementSelector . |
T:System.ArgumentNullException | source or keySelector or elementSelector is null . |
Definition at line 2443 of file Enumerable.cs.
|
static |
Produces the set union of two sequences by using the default equality comparer.
first | An T:System.Collections.Generic.IEnumerable`1 whose distinct elements form the first set for the union. |
second | An T:System.Collections.Generic.IEnumerable`1 whose distinct elements form the second set for the union. |
TSource | The type of the elements of the input sequences. |
T:System.ArgumentNullException | first or second is null . |
Definition at line 1998 of file Enumerable.cs.
|
static |
Produces the set union of two sequences by using a specified T:System.Collections.Generic.IEqualityComparer`1.
first | An T:System.Collections.Generic.IEnumerable`1 whose distinct elements form the first set for the union. |
second | An T:System.Collections.Generic.IEnumerable`1 whose distinct elements form the second set for the union. |
comparer | The T:System.Collections.Generic.IEqualityComparer`1 to compare values. |
TSource | The type of the elements of the input sequences. |
T:System.ArgumentNullException | first or second is null . |
Definition at line 2020 of file Enumerable.cs.
|
static |
Filters a sequence of values based on a predicate.
source | An T:System.Collections.Generic.IEnumerable`1 to filter. |
predicate | A function to test each element for a condition. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
Definition at line 928 of file Enumerable.cs.
|
static |
Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.
source | An T:System.Collections.Generic.IEnumerable`1 to filter. |
predicate | A function to test each source element for a condition; the second parameter of the function represents the index of the source element. |
TSource | The type of the elements of source . |
T:System.ArgumentNullException | source or predicate is null . |
Definition at line 961 of file Enumerable.cs.
|
static |
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.
first | The first sequence to merge. |
second | The second sequence to merge. |
resultSelector | A function that specifies how to merge the elements from the two sequences. |
TFirst | The type of the elements of the first input sequence. |
TSecond | The type of the elements of the second input sequence. |
TResult | The type of the elements of the result sequence. |
T:System.ArgumentNullException | first or second is null . |
Definition at line 1914 of file Enumerable.cs.