Click or drag to resize

MoreEnumerable Class

Provides a set of static methods for querying objects that implement IEnumerableT.
Inheritance Hierarchy
SystemObject
  MoreLinqMoreEnumerable

Namespace:  MoreLinq
Assembly:  MoreLinq (in MoreLinq.dll) Version: 3.3.1+b77df70598ab84c28cd43dcf74594024b6d575e1
Syntax
public static class MoreEnumerable

The MoreEnumerable type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAcquireTSource
Ensures that a source sequence of IDisposable objects are all acquired successfully. If the acquisition of any one IDisposable fails then those successfully acquired till that point are disposed.
Public methodStatic memberAggregateT, TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TAccumulate6, TAccumulate7, TAccumulate8, TResult(IEnumerableT, TAccumulate1, FuncTAccumulate1, T, TAccumulate1, TAccumulate2, FuncTAccumulate2, T, TAccumulate2, TAccumulate3, FuncTAccumulate3, T, TAccumulate3, TAccumulate4, FuncTAccumulate4, T, TAccumulate4, TAccumulate5, FuncTAccumulate5, T, TAccumulate5, TAccumulate6, FuncTAccumulate6, T, TAccumulate6, TAccumulate7, FuncTAccumulate7, T, TAccumulate7, TAccumulate8, FuncTAccumulate8, T, TAccumulate8, FuncTAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TAccumulate6, TAccumulate7, TAccumulate8, TResult)
Applies eight accumulators sequentially in a single pass over a sequence.
Public methodStatic memberAggregateT, TAccumulate1, TAccumulate2, TResult(IEnumerableT, TAccumulate1, FuncTAccumulate1, T, TAccumulate1, TAccumulate2, FuncTAccumulate2, T, TAccumulate2, FuncTAccumulate1, TAccumulate2, TResult)
Applies two accumulators sequentially in a single pass over a sequence.
Public methodStatic memberAggregateT, TAccumulate1, TAccumulate2, TAccumulate3, TResult(IEnumerableT, TAccumulate1, FuncTAccumulate1, T, TAccumulate1, TAccumulate2, FuncTAccumulate2, T, TAccumulate2, TAccumulate3, FuncTAccumulate3, T, TAccumulate3, FuncTAccumulate1, TAccumulate2, TAccumulate3, TResult)
Applies three accumulators sequentially in a single pass over a sequence.
Public methodStatic memberAggregateT, TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TResult(IEnumerableT, TAccumulate1, FuncTAccumulate1, T, TAccumulate1, TAccumulate2, FuncTAccumulate2, T, TAccumulate2, TAccumulate3, FuncTAccumulate3, T, TAccumulate3, TAccumulate4, FuncTAccumulate4, T, TAccumulate4, FuncTAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TResult)
Applies four accumulators sequentially in a single pass over a sequence.
Public methodStatic memberAggregateT, TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TResult(IEnumerableT, TAccumulate1, FuncTAccumulate1, T, TAccumulate1, TAccumulate2, FuncTAccumulate2, T, TAccumulate2, TAccumulate3, FuncTAccumulate3, T, TAccumulate3, TAccumulate4, FuncTAccumulate4, T, TAccumulate4, TAccumulate5, FuncTAccumulate5, T, TAccumulate5, FuncTAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TResult)
Applies five accumulators sequentially in a single pass over a sequence.
Public methodStatic memberAggregateT, TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TAccumulate6, TResult(IEnumerableT, TAccumulate1, FuncTAccumulate1, T, TAccumulate1, TAccumulate2, FuncTAccumulate2, T, TAccumulate2, TAccumulate3, FuncTAccumulate3, T, TAccumulate3, TAccumulate4, FuncTAccumulate4, T, TAccumulate4, TAccumulate5, FuncTAccumulate5, T, TAccumulate5, TAccumulate6, FuncTAccumulate6, T, TAccumulate6, FuncTAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TAccumulate6, TResult)
Applies six accumulators sequentially in a single pass over a sequence.
Public methodStatic memberAggregateT, TAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TAccumulate6, TAccumulate7, TResult(IEnumerableT, TAccumulate1, FuncTAccumulate1, T, TAccumulate1, TAccumulate2, FuncTAccumulate2, T, TAccumulate2, TAccumulate3, FuncTAccumulate3, T, TAccumulate3, TAccumulate4, FuncTAccumulate4, T, TAccumulate4, TAccumulate5, FuncTAccumulate5, T, TAccumulate5, TAccumulate6, FuncTAccumulate6, T, TAccumulate6, TAccumulate7, FuncTAccumulate7, T, TAccumulate7, FuncTAccumulate1, TAccumulate2, TAccumulate3, TAccumulate4, TAccumulate5, TAccumulate6, TAccumulate7, TResult)
Applies seven accumulators sequentially in a single pass over a sequence.
Public methodStatic memberCode exampleAggregateRightTSource(IEnumerableTSource, FuncTSource, TSource, TSource)
Applies a right-associative accumulator function over a sequence. This operator is the right-associative version of the AggregateTSource(IEnumerableTSource, FuncTSource, TSource, TSource) LINQ operator.
Public methodStatic memberCode exampleAggregateRightTSource, TAccumulate(IEnumerableTSource, TAccumulate, FuncTSource, TAccumulate, TAccumulate)
Applies a right-associative accumulator function over a sequence. The specified seed value is used as the initial accumulator value. This operator is the right-associative version of the AggregateTSource, TAccumulate(IEnumerableTSource, TAccumulate, FuncTAccumulate, TSource, TAccumulate) LINQ operator.
Public methodStatic memberCode exampleAggregateRightTSource, TAccumulate, TResult(IEnumerableTSource, TAccumulate, FuncTSource, TAccumulate, TAccumulate, FuncTAccumulate, TResult)
Applies a right-associative 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. This operator is the right-associative version of the AggregateTSource, TAccumulate, TResult(IEnumerableTSource, TAccumulate, FuncTAccumulate, TSource, TAccumulate, FuncTAccumulate, TResult) LINQ operator.
Public methodStatic memberAppendT
Returns a sequence consisting of the head elements and the given tail element.
Public methodStatic memberAssertTSource(IEnumerableTSource, FuncTSource, Boolean)
Asserts that all elements of a sequence meet a given condition otherwise throws an Exception object.
Public methodStatic memberAssertTSource(IEnumerableTSource, FuncTSource, Boolean, FuncTSource, Exception)
Asserts that all elements of a sequence meet a given condition otherwise throws an Exception object.
Public methodStatic memberAssertCountTSource(IEnumerableTSource, Int32)
Asserts that a source sequence contains a given count of elements.
Public methodStatic memberAssertCountTSource(IEnumerableTSource, Int32, FuncInt32, Int32, Exception)
Asserts that a source sequence contains a given count of elements. A parameter specifies the exception to be thrown.
Public methodStatic memberCode exampleAtLeastT
Determines whether or not the number of elements in the sequence is greater than or equal to the given integer.
Public methodStatic memberCode exampleAtMostT
Determines whether or not the number of elements in the sequence is lesser than or equal to the given integer.
Public methodStatic memberBacksertT
Inserts the elements of a sequence into another sequence at a specified index from the tail of the sequence, where zero always represents the last position, one represents the second-last element, two represents the third-last element and so on.
Public methodStatic memberBatchTSource(IEnumerableTSource, Int32)
Batches the source sequence into sized buckets.
Public methodStatic memberBatchTSource, TResult(IEnumerableTSource, Int32, FuncIEnumerableTSource, TResult)
Batches the source sequence into sized buckets and applies a projection to each bucket.
Public methodStatic memberCartesianT1, T2, TResult(IEnumerableT1, IEnumerableT2, FuncT1, T2, TResult)
Returns the Cartesian product of two sequences by enumerating all possible combinations of one item from each sequence, and applying a user-defined projection to the items in a given combination.
Public methodStatic memberCartesianT1, T2, T3, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, FuncT1, T2, T3, TResult)
Returns the Cartesian product of three sequences by enumerating all possible combinations of one item from each sequence, and applying a user-defined projection to the items in a given combination.
Public methodStatic memberCartesianT1, T2, T3, T4, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, FuncT1, T2, T3, T4, TResult)
Returns the Cartesian product of four sequences by enumerating all possible combinations of one item from each sequence, and applying a user-defined projection to the items in a given combination.
Public methodStatic memberCartesianT1, T2, T3, T4, T5, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, IEnumerableT5, FuncT1, T2, T3, T4, T5, TResult)
Returns the Cartesian product of five sequences by enumerating all possible combinations of one item from each sequence, and applying a user-defined projection to the items in a given combination.
Public methodStatic memberCartesianT1, T2, T3, T4, T5, T6, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, IEnumerableT5, IEnumerableT6, FuncT1, T2, T3, T4, T5, T6, TResult)
Returns the Cartesian product of six sequences by enumerating all possible combinations of one item from each sequence, and applying a user-defined projection to the items in a given combination.
Public methodStatic memberCartesianT1, T2, T3, T4, T5, T6, T7, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, IEnumerableT5, IEnumerableT6, IEnumerableT7, FuncT1, T2, T3, T4, T5, T6, T7, TResult)
Returns the Cartesian product of seven sequences by enumerating all possible combinations of one item from each sequence, and applying a user-defined projection to the items in a given combination.
Public methodStatic memberCartesianT1, T2, T3, T4, T5, T6, T7, T8, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, IEnumerableT5, IEnumerableT6, IEnumerableT7, IEnumerableT8, FuncT1, T2, T3, T4, T5, T6, T7, T8, TResult)
Returns the Cartesian product of eight sequences by enumerating all possible combinations of one item from each sequence, and applying a user-defined projection to the items in a given combination.
Public methodStatic memberCode exampleChooseT, TResult
Applies a function to each element of the source sequence and returns a new sequence of result elements for source elements where the function returns a couple (2-tuple) having a true as its first element and result as the second.
Public methodStatic memberCode exampleCompareCountTFirst, TSecond
Compares two sequences and returns an integer that indicates whether the first sequence has fewer, the same or more elements than the second sequence.
Public methodStatic memberConcatT Obsolete.
Returns a sequence consisting of the head elements and the given tail element.
Public methodStatic memberConsumeT
Completely consumes the given sequence. This method uses immediate execution, and doesn't store any data during execution.
Public methodStatic memberCode exampleCountBetweenT
Determines whether or not the number of elements in the sequence is between an inclusive range of minimum and maximum integers.
Public methodStatic memberCountByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Applies a key-generating function to each element of a sequence and returns a sequence of unique keys and their number of occurrences in the original sequence.
Public methodStatic memberCountByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)
Applies a key-generating function to each element of a sequence and returns a sequence of unique keys and their number of occurrences in the original sequence. An additional argument specifies a comparer to use for testing equivalence of keys.
Public methodStatic memberCountDownT, TResult
Provides a countdown counter for a given count of elements at the tail of the sequence where zero always represents the last element, one represents the second-last element, two represents the third-last element and so on.
Public methodStatic memberDistinctByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns all distinct elements of the given source, where "distinctness" is determined via a projection and the default equality comparer for the projected type.
Public methodStatic memberDistinctByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)
Returns all distinct elements of the given source, where "distinctness" is determined via a projection and the specified comparer for the projected type.
Public methodStatic memberEndsWithT(IEnumerableT, IEnumerableT)
Determines whether the end of the first sequence is equivalent to the second sequence, using the default equality comparer.
Public methodStatic memberEndsWithT(IEnumerableT, IEnumerableT, IEqualityComparerT)
Determines whether the end of the first sequence is equivalent to the second sequence, using the specified element equality comparer.
Public methodStatic memberCode exampleEquiZipTFirst, TSecond, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TSecond, TResult)
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences. An exception is thrown if the input sequences are of different lengths.
Public methodStatic memberCode exampleEquiZipT1, T2, T3, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, FuncT1, T2, T3, TResult)
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences. An exception is thrown if the input sequences are of different lengths.
Public methodStatic memberCode exampleEquiZipT1, T2, T3, T4, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, FuncT1, T2, T3, T4, TResult)
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences. An exception is thrown if the input sequences are of different lengths.
Public methodStatic memberEvaluateT
Returns a sequence containing the values resulting from invoking (in order) each function in the source sequence of functions.
Public methodStatic memberCode exampleExactlyT
Determines whether or not the number of elements in the sequence is equals to the given integer.
Public methodStatic memberExceptByTSource, TKey(IEnumerableTSource, IEnumerableTSource, FuncTSource, TKey)
Returns the set of elements in the first sequence which aren't in the second sequence, according to a given key selector.
Public methodStatic memberExceptByTSource, TKey(IEnumerableTSource, IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)
Returns the set of elements in the first sequence which aren't in the second sequence, according to a given key selector.
Public methodStatic memberExcludeT
Excludes a contiguous number of elements from a sequence starting at a given index.
Public methodStatic memberFallbackIfEmptyT(IEnumerableT, IEnumerableT)
Returns the elements of a sequence, but if it is empty then returns an alternate sequence of values.
Public methodStatic memberCode exampleFallbackIfEmptyT(IEnumerableT, T)
Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.
Public methodStatic memberFallbackIfEmptyT(IEnumerableT, T)
Returns the elements of a sequence, but if it is empty then returns an alternate sequence from an array of values.
Public methodStatic memberFallbackIfEmptyT(IEnumerableT, T, T)
Returns the elements of a sequence, but if it is empty then returns an alternate sequence of values.
Public methodStatic memberFallbackIfEmptyT(IEnumerableT, T, T, T)
Returns the elements of a sequence, but if it is empty then returns an alternate sequence of values.
Public methodStatic memberFallbackIfEmptyT(IEnumerableT, T, T, T, T)
Returns the elements of a sequence, but if it is empty then returns an alternate sequence of values.
Public methodStatic memberFillBackwardT(IEnumerableT)
Returns a sequence with each null reference or value in the source replaced with the following non-null reference or value in that sequence.
Public methodStatic memberFillBackwardT(IEnumerableT, FuncT, Boolean)
Returns a sequence with each missing element in the source replaced with the following non-missing element in that sequence. An additional parameter specifies a function used to determine if an element is considered missing or not.
Public methodStatic memberFillBackwardT(IEnumerableT, FuncT, Boolean, FuncT, T, T)
Returns a sequence with each missing element in the source replaced with the following non-missing element in that sequence. Additional parameters specifiy two functions, one used to determine if an element is considered missing or not and another to provide the replacement for the missing element.
Public methodStatic memberFillForwardT(IEnumerableT)
Returns a sequence with each null reference or value in the source replaced with the previous non-null reference or value seen in that sequence.
Public methodStatic memberFillForwardT(IEnumerableT, FuncT, Boolean)
Returns a sequence with each missing element in the source replaced with the previous non-missing element seen in that sequence. An additional parameter specifies a function used to determine if an element is considered missing or not.
Public methodStatic memberFillForwardT(IEnumerableT, FuncT, Boolean, FuncT, T, T)
Returns a sequence with each missing element in the source replaced with one based on the previous non-missing element seen in that sequence. Additional parameters specifiy two functions, one used to determine if an element is considered missing or not and another to provide the replacement for the missing element.
Public methodStatic memberFirstT
Returns the first element of a sequence.
Public methodStatic memberFirstOrDefaultT
Returns the first element of a sequence, or a default value if the sequence contains no elements.
Public methodStatic memberFlatten(IEnumerable)
Flattens a sequence containing arbitrarily-nested sequences.
Public methodStatic memberFlatten(IEnumerable, FuncIEnumerable, Boolean)
Flattens a sequence containing arbitrarily-nested sequences. An additional parameter specifies a predicate function used to determine whether a nested IEnumerable should be flattened or not.
Public methodStatic memberFlatten(IEnumerable, FuncObject, IEnumerable)
Flattens a sequence containing arbitrarily-nested sequences. An additional parameter specifies a function that projects an inner sequence via a property of an object.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 9 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 10 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 11 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 12 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 13 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 14 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 15 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 16 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, TResult)
Returns the result of applying a function to a sequence of 1 element.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, TResult)
Returns the result of applying a function to a sequence of 2 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, TResult)
Returns the result of applying a function to a sequence of 3 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, TResult)
Returns the result of applying a function to a sequence of 4 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 5 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 6 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 7 elements.
Public methodStatic memberFoldT, TResult(IEnumerableT, FuncT, T, T, T, T, T, T, T, TResult)
Returns the result of applying a function to a sequence of 8 elements.
Public methodStatic memberForEachT(IEnumerableT, ActionT)
Immediately executes the given action on each element in the source sequence.
Public methodStatic memberForEachT(IEnumerableT, ActionT, Int32)
Immediately executes the given action on each element in the source sequence. Each element's index is used in the logic of the action.
Public methodStatic memberFromT(FuncT)
Returns a single-element sequence containing the result of invoking the function.
Public methodStatic memberFromT(FuncT)
Returns a sequence containing the values resulting from invoking (in order) each function in the source sequence of functions.
Public methodStatic memberFromT(FuncT, FuncT)
Returns a sequence containing the result of invoking each parameter function in order.
Public methodStatic memberFromT(FuncT, FuncT, FuncT)
Returns a sequence containing the result of invoking each parameter function in order.
Public methodStatic memberFullGroupJoinTFirst, TSecond, TKey(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey)
Performs a Full Group Join between the first and second sequences.
Public methodStatic memberFullGroupJoinTFirst, TSecond, TKey(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, IEqualityComparerTKey)
Performs a Full Group Join between the first and second sequences.
Public methodStatic memberFullGroupJoinTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTKey, IEnumerableTFirst, IEnumerableTSecond, TResult)
Performs a full group-join between two sequences.
Public methodStatic memberFullGroupJoinTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTKey, IEnumerableTFirst, IEnumerableTSecond, TResult, IEqualityComparerTKey)
Performs a full group-join between two sequences.
Public methodStatic memberFullJoinTSource, TKey, TResult(IEnumerableTSource, IEnumerableTSource, FuncTSource, TKey, FuncTSource, TResult, FuncTSource, TResult, FuncTSource, TSource, TResult)
Performs a full outer join on two homogeneous sequences. Additional arguments specify key selection functions and result projection functions.
Public methodStatic memberFullJoinTSource, TKey, TResult(IEnumerableTSource, IEnumerableTSource, FuncTSource, TKey, FuncTSource, TResult, FuncTSource, TResult, FuncTSource, TSource, TResult, IEqualityComparerTKey)
Performs a full outer join on two homogeneous sequences. Additional arguments specify key selection functions, result projection functions and a key comparer.
Public methodStatic memberFullJoinTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTFirst, TResult, FuncTSecond, TResult, FuncTFirst, TSecond, TResult)
Performs a full outer join on two heterogeneous sequences. Additional arguments specify key selection functions and result projection functions.
Public methodStatic memberFullJoinTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTFirst, TResult, FuncTSecond, TResult, FuncTFirst, TSecond, TResult, IEqualityComparerTKey)
Performs a full outer join on two heterogeneous sequences. Additional arguments specify key selection functions, result projection functions and a key comparer.
Public methodStatic memberCode exampleGenerateTResult
Returns a sequence of values consecutively generated by a generator function.
Public methodStatic memberGenerateByIndexTResult
Returns a sequence of values based on indexes.
Public methodStatic memberGroupAdjacentTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Groups the adjacent elements of a sequence according to a specified key selector function.
Public methodStatic memberGroupAdjacentTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)
Groups the adjacent elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.
Public methodStatic memberGroupAdjacentTSource, TKey, TElement(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement)
Groups the adjacent elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.
Public methodStatic memberGroupAdjacentTSource, TKey, TResult(IEnumerableTSource, FuncTSource, TKey, FuncTKey, IEnumerableTSource, TResult)
Groups the adjacent elements of a sequence according to a specified key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
Public methodStatic memberGroupAdjacentTSource, TKey, TElement(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement, IEqualityComparerTKey)
Groups the adjacent elements of a sequence according to a specified key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
Public methodStatic memberGroupAdjacentTSource, TKey, TResult(IEnumerableTSource, FuncTSource, TKey, FuncTKey, IEnumerableTSource, TResult, IEqualityComparerTKey)
Groups the adjacent elements of a sequence according to a specified key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
Public methodStatic memberIndexTSource(IEnumerableTSource)
Returns a sequence of KeyValuePairTKey, TValue where the key is the zero-based index of the value in the source sequence.
Public methodStatic memberIndexTSource(IEnumerableTSource, Int32)
Returns a sequence of KeyValuePairTKey, TValue where the key is the index of the value in the source sequence. An additional parameter specifies the starting index.
Public methodStatic memberIndexByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Applies a key-generating function to each element of a sequence and returns a sequence that contains the elements of the original sequence as well its key and index inside the group of its key.
Public methodStatic memberIndexByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)
Applies a key-generating function to each element of a sequence and returns a sequence that contains the elements of the original sequence as well its key and index inside the group of its key. An additional parameter specifies a comparer to use for testing the equivalence of keys.
Public methodStatic memberInsertT
Inserts the elements of a sequence into another sequence at a specified index.
Public methodStatic memberInterleaveT
Interleaves the elements of two or more sequences into a single sequence, skipping sequences as they are consumed
Public methodStatic memberLagTSource, TResult(IEnumerableTSource, Int32, FuncTSource, TSource, TResult)
Produces a projection of a sequence by evaluating pairs of elements separated by a negative offset.
Public methodStatic memberLagTSource, TResult(IEnumerableTSource, Int32, TSource, FuncTSource, TSource, TResult)
Produces a projection of a sequence by evaluating pairs of elements separated by a negative offset.
Public methodStatic memberLastT
Returns the last element of a sequence.
Public methodStatic memberLastOrDefaultT
Returns the last element of a sequence, or a default value if the sequence contains no elements.
Public methodStatic memberLeadTSource, TResult(IEnumerableTSource, Int32, FuncTSource, TSource, TResult)
Produces a projection of a sequence by evaluating pairs of elements separated by a positive offset.
Public methodStatic memberLeadTSource, TResult(IEnumerableTSource, Int32, TSource, FuncTSource, TSource, TResult)
Produces a projection of a sequence by evaluating pairs of elements separated by a positive offset.
Public methodStatic memberLeftJoinTSource, TKey, TResult(IEnumerableTSource, IEnumerableTSource, FuncTSource, TKey, FuncTSource, TResult, FuncTSource, TSource, TResult)
Performs a left outer join on two homogeneous sequences. Additional arguments specify key selection functions and result projection functions.
Public methodStatic memberLeftJoinTSource, TKey, TResult(IEnumerableTSource, IEnumerableTSource, FuncTSource, TKey, FuncTSource, TResult, FuncTSource, TSource, TResult, IEqualityComparerTKey)
Performs a left outer join on two homogeneous sequences. Additional arguments specify key selection functions, result projection functions and a key comparer.
Public methodStatic memberLeftJoinTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTFirst, TResult, FuncTFirst, TSecond, TResult)
Performs a left outer join on two heterogeneous sequences. Additional arguments specify key selection functions and result projection functions.
Public methodStatic memberLeftJoinTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTFirst, TResult, FuncTFirst, TSecond, TResult, IEqualityComparerTKey)
Performs a left outer join on two heterogeneous sequences. Additional arguments specify key selection functions, result projection functions and a key comparer.
Public methodStatic memberMaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns the maximal elements of the given sequence, based on the given projection.
Public methodStatic memberMaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)
Returns the maximal elements of the given sequence, based on the given projection and the specified comparer for projected values.
Public methodStatic memberMinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns the minimal elements of the given sequence, based on the given projection.
Public methodStatic memberMinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)
Returns the minimal elements of the given sequence, based on the given projection and the specified comparer for projected values.
Public methodStatic memberCode exampleMoveT
Returns a sequence with a range of elements in the source sequence moved to a new offset.
Public methodStatic memberOrderByT, TKey(IEnumerableT, FuncT, TKey, OrderByDirection)
Sorts the elements of a sequence in a particular direction (ascending, descending) according to a key
Public methodStatic memberOrderByT, TKey(IEnumerableT, FuncT, TKey, IComparerTKey, OrderByDirection)
Sorts the elements of a sequence in a particular direction (ascending, descending) according to a key
Public methodStatic memberOrderedMergeT(IEnumerableT, IEnumerableT)
Merges two ordered sequences into one. Where the elements equal in both sequences, the element from the first sequence is returned in the resulting sequence.
Public methodStatic memberOrderedMergeT(IEnumerableT, IEnumerableT, IComparerT)
Merges two ordered sequences into one with an additional parameter specifying how to compare the elements of the sequences. Where the elements equal in both sequences, the element from the first sequence is returned in the resulting sequence.
Public methodStatic memberOrderedMergeT, TKey(IEnumerableT, IEnumerableT, FuncT, TKey)
Merges two ordered sequences into one with an additional parameter specifying the element key by which the sequences are ordered. Where the keys equal in both sequences, the element from the first sequence is returned in the resulting sequence.
Public methodStatic memberOrderedMergeT, TKey, TResult(IEnumerableT, IEnumerableT, FuncT, TKey, FuncT, TResult, FuncT, TResult, FuncT, T, TResult)
Merges two ordered sequences into one. Additional parameters specify the element key by which the sequences are ordered, the result when element is found in first sequence but not in the second, the result when element is found in second sequence but not in the first and the result when elements are found in both sequences.
Public methodStatic memberOrderedMergeT, TKey, TResult(IEnumerableT, IEnumerableT, FuncT, TKey, FuncT, TResult, FuncT, TResult, FuncT, T, TResult, IComparerTKey)
Merges two ordered sequences into one. Additional parameters specify the element key by which the sequences are ordered, the result when element is found in first sequence but not in the second, the result when element is found in second sequence but not in the first, the result when elements are found in both sequences and a method for comparing keys.
Public methodStatic memberOrderedMergeTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTFirst, TResult, FuncTSecond, TResult, FuncTFirst, TSecond, TResult)
Merges two heterogeneous sequences ordered by a common key type into a homogeneous one. Additional parameters specify the element key by which the sequences are ordered, the result when element is found in first sequence but not in the second and the result when element is found in second sequence but not in the first, the result when elements are found in both sequences.
Public methodStatic memberOrderedMergeTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTFirst, TResult, FuncTSecond, TResult, FuncTFirst, TSecond, TResult, IComparerTKey)
Merges two heterogeneous sequences ordered by a common key type into a homogeneous one. Additional parameters specify the element key by which the sequences are ordered, the result when element is found in first sequence but not in the second, the result when element is found in second sequence but not in the first, the result when elements are found in both sequences and a method for comparing keys.
Public methodStatic memberCode examplePadTSource(IEnumerableTSource, Int32)
Pads a sequence with default values if it is narrower (shorter in length) than a given width.
Public methodStatic memberCode examplePadTSource(IEnumerableTSource, Int32, FuncInt32, TSource)
Pads a sequence with a dynamic filler value if it is narrower (shorter in length) than a given width.
Public methodStatic memberCode examplePadTSource(IEnumerableTSource, Int32, TSource)
Pads a sequence with a given filler value if it is narrower (shorter in length) than a given width.
Public methodStatic memberCode examplePadStartTSource(IEnumerableTSource, Int32)
Pads a sequence with default values in the beginning if it is narrower (shorter in length) than a given width.
Public methodStatic memberCode examplePadStartTSource(IEnumerableTSource, Int32, FuncInt32, TSource)
Pads a sequence with a dynamic filler value in the beginning if it is narrower (shorter in length) than a given width. An additional parameter specifies the function to calculate padding.
Public methodStatic memberCode examplePadStartTSource(IEnumerableTSource, Int32, TSource)
Pads a sequence with a given filler value in the beginning if it is narrower (shorter in length) than a given width. An additional parameter specifies the value to use for padding.
Public methodStatic memberCode examplePairwiseTSource, TResult
Returns a sequence resulting from applying a function to each element in the source sequence and its predecessor, with the exception of the first element which is only returned as the predecessor of the second element.
Public methodStatic memberPartialSortT(IEnumerableT, Int32)
Combines OrderByTSource, TKey(IEnumerableTSource, FuncTSource, TKey), where each element is its key, and TakeTSource(IEnumerableTSource, Int32) in a single operation.
Public methodStatic memberPartialSortT(IEnumerableT, Int32, OrderByDirection)
Combines OrderByT, TKey(IEnumerableT, FuncT, TKey, IComparerTKey, OrderByDirection), where each element is its key, and TakeTSource(IEnumerableTSource, Int32) in a single operation. An additional parameter specifies the direction of the sort
Public methodStatic memberPartialSortT(IEnumerableT, Int32, IComparerT)
Combines OrderByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey), where each element is its key, and TakeTSource(IEnumerableTSource, Int32) in a single operation. An additional parameter specifies how the elements compare to each other.
Public methodStatic memberPartialSortT(IEnumerableT, Int32, IComparerT, OrderByDirection)
Combines OrderByT, TKey(IEnumerableT, FuncT, TKey, IComparerTKey, OrderByDirection), where each element is its key, and TakeTSource(IEnumerableTSource, Int32) in a single operation. Additional parameters specify how the elements compare to each other and the direction of the sort.
Public methodStatic memberPartialSortByTSource, TKey(IEnumerableTSource, Int32, FuncTSource, TKey)
Combines OrderByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey), and TakeTSource(IEnumerableTSource, Int32) in a single operation.
Public methodStatic memberPartialSortByTSource, TKey(IEnumerableTSource, Int32, FuncTSource, TKey, OrderByDirection)
Combines OrderByT, TKey(IEnumerableT, FuncT, TKey, OrderByDirection), and TakeTSource(IEnumerableTSource, Int32) in a single operation. An additional parameter specifies the direction of the sort
Public methodStatic memberPartialSortByTSource, TKey(IEnumerableTSource, Int32, FuncTSource, TKey, IComparerTKey)
Combines OrderByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey), and TakeTSource(IEnumerableTSource, Int32) in a single operation. An additional parameter specifies how the keys compare to each other.
Public methodStatic memberPartialSortByTSource, TKey(IEnumerableTSource, Int32, FuncTSource, TKey, IComparerTKey, OrderByDirection)
Combines OrderByT, TKey(IEnumerableT, FuncT, TKey, OrderByDirection), and TakeTSource(IEnumerableTSource, Int32) in a single operation. Additional parameters specify how the elements compare to each other and the direction of the sort.
Public methodStatic memberCode examplePartitionT(IEnumerableT, FuncT, Boolean)
Partitions or splits a sequence in two using a predicate.
Public methodStatic memberPartitionT, TResult(IEnumerableIGroupingBoolean, T, FuncIEnumerableT, IEnumerableT, TResult)
Partitions a grouping by Boolean keys into a projection of true elements and false elements, respectively.
Public methodStatic memberPartitionT, TResult(IEnumerableIGroupingNullableBoolean, T, FuncIEnumerableT, IEnumerableT, IEnumerableT, TResult)
Partitions a grouping by nullable Boolean keys into a projection of true elements, false elements and null elements, respectively.
Public methodStatic memberCode examplePartitionT, TResult(IEnumerableT, FuncT, Boolean, FuncIEnumerableT, IEnumerableT, TResult)
Partitions or splits a sequence in two using a predicate and then projects a result from the two.
Public methodStatic memberPartitionTKey, TElement, TResult(IEnumerableIGroupingTKey, TElement, TKey, FuncIEnumerableTElement, IEnumerableIGroupingTKey, TElement, TResult)
Partitions a grouping and projects a result from group elements matching a key and those groups that do not.
Public methodStatic memberPartitionTKey, TElement, TResult(IEnumerableIGroupingTKey, TElement, TKey, IEqualityComparerTKey, FuncIEnumerableTElement, IEnumerableIGroupingTKey, TElement, TResult)
Partitions a grouping and projects a result from group elements matching a key and those groups that do not. An additional parameter specifies how to compare keys for equality.
Public methodStatic memberPartitionTKey, TElement, TResult(IEnumerableIGroupingTKey, TElement, TKey, TKey, FuncIEnumerableTElement, IEnumerableTElement, IEnumerableIGroupingTKey, TElement, TResult)
Partitions a grouping and projects a result from elements of groups matching a set of two keys and those groups that do not.
Public methodStatic memberPartitionTKey, TElement, TResult(IEnumerableIGroupingTKey, TElement, TKey, TKey, IEqualityComparerTKey, FuncIEnumerableTElement, IEnumerableTElement, IEnumerableIGroupingTKey, TElement, TResult)
Partitions a grouping and projects a result from elements of groups matching a set of two keys and those groups that do not. An additional parameter specifies how to compare keys for equality.
Public methodStatic memberPartitionTKey, TElement, TResult(IEnumerableIGroupingTKey, TElement, TKey, TKey, TKey, FuncIEnumerableTElement, IEnumerableTElement, IEnumerableTElement, IEnumerableIGroupingTKey, TElement, TResult)
Partitions a grouping and projects a result from elements groups matching a set of three keys and those groups that do not.
Public methodStatic memberPartitionTKey, TElement, TResult(IEnumerableIGroupingTKey, TElement, TKey, TKey, TKey, IEqualityComparerTKey, FuncIEnumerableTElement, IEnumerableTElement, IEnumerableTElement, IEnumerableIGroupingTKey, TElement, TResult)
Partitions a grouping and projects a result from elements groups matching a set of three keys and those groups that do not. An additional parameter specifies how to compare keys for equality.
Public methodStatic memberPermutationsT
Generates a sequence of lists that represent the permutations of the original sequence.
Public methodStatic memberPipeT
Executes the given action on each element in the source sequence and yields it.
Public methodStatic memberPrependTSource
Prepends a single value to a sequence.
Public methodStatic memberCode examplePreScanTSource
Performs a pre-scan (exclusive prefix sum) on a sequence of elements.
Public methodStatic memberRandom
Returns an infinite sequence of random integers using the standard .NET random number generator.
Public methodStatic memberRandom(Int32)
Returns an infinite sequence of random integers between zero and a given maximum.
Public methodStatic memberRandom(Random)
Returns an infinite sequence of random integers using the supplied random number generator.
Public methodStatic memberRandom(Int32, Int32)
Returns an infinite sequence of random integers between a given minimum and a maximum.
Public methodStatic memberRandom(Random, Int32)
Returns an infinite sequence of random integers between zero and a given maximum using the supplied random number generator.
Public methodStatic memberRandom(Random, Int32, Int32)
Returns an infinite sequence of random integers between a given minumum and a maximum using the supplied random number generator.
Public methodStatic memberRandomDouble
Returns an infinite sequence of random double values between 0.0 and 1.0
Public methodStatic memberRandomDouble(Random)
Returns an infinite sequence of random double values between 0.0 and 1.0 using the supplied random number generator.
Public methodStatic memberRandomSubsetT(IEnumerableT, Int32)
Returns a sequence of a specified size of random elements from the original sequence.
Public methodStatic memberRandomSubsetT(IEnumerableT, Int32, Random)
Returns a sequence of a specified size of random elements from the original sequence. An additional parameter specifies a random generator to be used for the random selection algorithm.
Public methodStatic memberRankTSource(IEnumerableTSource)
Ranks each item in the sequence in descending ordering using a default comparer.
Public methodStatic memberRankTSource(IEnumerableTSource, IComparerTSource)
Rank each item in the sequence using a caller-supplied comparer.
Public methodStatic memberRankByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Ranks each item in the sequence in descending ordering by a specified key using a default comparer
Public methodStatic memberRankByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)
Ranks each item in a sequence using a specified key and a caller-supplied comparer
Public methodStatic memberRepeatT(IEnumerableT)
Repeats the sequence forever.
Public methodStatic memberRepeatT(IEnumerableT, Int32)
Repeats the sequence the specified number of times.
Public methodStatic memberReturnT
Returns a single-element sequence containing the item provided.
Public methodStatic memberRightJoinTSource, TKey, TResult(IEnumerableTSource, IEnumerableTSource, FuncTSource, TKey, FuncTSource, TResult, FuncTSource, TSource, TResult)
Performs a right outer join on two homogeneous sequences. Additional arguments specify key selection functions and result projection functions.
Public methodStatic memberRightJoinTSource, TKey, TResult(IEnumerableTSource, IEnumerableTSource, FuncTSource, TKey, FuncTSource, TResult, FuncTSource, TSource, TResult, IEqualityComparerTKey)
Performs a right outer join on two homogeneous sequences. Additional arguments specify key selection functions, result projection functions and a key comparer.
Public methodStatic memberRightJoinTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTSecond, TResult, FuncTFirst, TSecond, TResult)
Performs a right outer join on two heterogeneous sequences. Additional arguments specify key selection functions and result projection functions.
Public methodStatic memberRightJoinTFirst, TSecond, TKey, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TKey, FuncTSecond, TKey, FuncTSecond, TResult, FuncTFirst, TSecond, TResult, IEqualityComparerTKey)
Performs a right outer join on two heterogeneous sequences. Additional arguments specify key selection functions, result projection functions and a key comparer.
Public methodStatic memberRunLengthEncodeT(IEnumerableT)
Run-length encodes a sequence by converting consecutive instances of the same element into a KeyValuePair{T,int} representing the item and its occurrence count.
Public methodStatic memberRunLengthEncodeT(IEnumerableT, IEqualityComparerT)
Run-length encodes a sequence by converting consecutive instances of the same element into a KeyValuePair{T,int} representing the item and its occurrence count. This overload uses a custom equality comparer to identify equivalent items.
Public methodStatic memberCode exampleScanTSource(IEnumerableTSource, FuncTSource, TSource, TSource)
Performs a scan (inclusive prefix sum) on a sequence of elements.
Public methodStatic memberCode exampleScanTSource, TState(IEnumerableTSource, TState, FuncTState, TSource, TState)
Like AggregateTSource(IEnumerableTSource, FuncTSource, TSource, TSource) except returns the sequence of intermediate results as well as the final one. An additional parameter specifies a seed.
Public methodStatic memberScanByTSource, TKey, TState(IEnumerableTSource, FuncTSource, TKey, FuncTKey, TState, FuncTState, TKey, TSource, TState)
Applies an accumulator function over sequence element keys, returning the keys along with intermediate accumulator states.
Public methodStatic memberScanByTSource, TKey, TState(IEnumerableTSource, FuncTSource, TKey, FuncTKey, TState, FuncTState, TKey, TSource, TState, IEqualityComparerTKey)
Applies an accumulator function over sequence element keys, returning the keys along with intermediate accumulator states. An additional parameter specifies the comparer to use to compare keys.
Public methodStatic memberCode exampleScanRightTSource(IEnumerableTSource, FuncTSource, TSource, TSource)
Public methodStatic memberCode exampleScanRightTSource, TAccumulate(IEnumerableTSource, TAccumulate, FuncTSource, TAccumulate, TAccumulate)
Public methodStatic memberSegmentT(IEnumerableT, FuncT, Boolean)
Divides a sequence into multiple sequences by using a segment detector based on the original sequence
Public methodStatic memberSegmentT(IEnumerableT, FuncT, Int32, Boolean)
Divides a sequence into multiple sequences by using a segment detector based on the original sequence
Public methodStatic memberSegmentT(IEnumerableT, FuncT, T, Int32, Boolean)
Divides a sequence into multiple sequences by using a segment detector based on the original sequence
Public methodStatic memberCode exampleSequence(Int32, Int32)
Generates a sequence of integral numbers within the (inclusive) specified range. If sequence is ascending the step is +1, otherwise -1.
Public methodStatic memberCode exampleSequence(Int32, Int32, Int32)
Generates a sequence of integral numbers within the (inclusive) specified range. An additional parameter specifies the steps in which the integers of the sequence increase or decrease.
Public methodStatic memberShuffleT(IEnumerableT)
Returns a sequence of elements in random order from the original sequence.
Public methodStatic memberShuffleT(IEnumerableT, Random)
Returns a sequence of elements in random order from the original sequence. An additional parameter specifies a random generator to be used for the random selection algorithm.
Public methodStatic memberSingleT
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
Public methodStatic memberSingleOrDefaultT
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.
Public methodStatic memberSkipLastT
Bypasses a specified number of elements at the end of the sequence.
Public methodStatic memberSkipUntilTSource
Skips items from the input sequence until the given predicate returns true when applied to the current source item; that item will be the last skipped.
Public methodStatic memberSliceT
Extracts a contiguous count of elements from a sequence at a particular zero-based starting index
Public methodStatic memberSortedMergeTSource(IEnumerableTSource, OrderByDirection, IEnumerableTSource)
Merges two or more sequences that are in a common order (either ascending or descending) into a single sequence that preserves that order.
Public methodStatic memberSortedMergeTSource(IEnumerableTSource, OrderByDirection, IComparerTSource, IEnumerableTSource)
Merges two or more sequences that are in a common order (either ascending or descending) into a single sequence that preserves that order.
Public methodStatic memberSplitTSource(IEnumerableTSource, FuncTSource, Boolean)
Splits the source sequence by separator elements identified by a function.
Public methodStatic memberSplitTSource(IEnumerableTSource, TSource)
Splits the source sequence by a separator.
Public methodStatic memberSplitTSource(IEnumerableTSource, FuncTSource, Boolean, Int32)
Splits the source sequence by separator elements identified by a function, given a maximum count of splits.
Public methodStatic memberSplitTSource(IEnumerableTSource, TSource, IEqualityComparerTSource)
Splits the source sequence by a separator and then transforms the splits into results.
Public methodStatic memberSplitTSource(IEnumerableTSource, TSource, Int32)
Splits the source sequence by a separator given a maximum count of splits.
Public methodStatic memberSplitTSource(IEnumerableTSource, TSource, IEqualityComparerTSource, Int32)
Splits the source sequence by a separator, given a maximum count of splits. A parameter specifies how the separator is compared for equality.
Public methodStatic memberSplitTSource, TResult(IEnumerableTSource, FuncTSource, Boolean, FuncIEnumerableTSource, TResult)
Splits the source sequence by separator elements identified by a function and then transforms the splits into results.
Public methodStatic memberSplitTSource, TResult(IEnumerableTSource, TSource, FuncIEnumerableTSource, TResult)
Splits the source sequence by a separator and then transforms the splits into results.
Public methodStatic memberSplitTSource, TResult(IEnumerableTSource, FuncTSource, Boolean, Int32, FuncIEnumerableTSource, TResult)
Splits the source sequence by separator elements identified by a function, given a maximum count of splits, and then transforms the splits into results.
Public methodStatic memberSplitTSource, TResult(IEnumerableTSource, TSource, IEqualityComparerTSource, FuncIEnumerableTSource, TResult)
Splits the source sequence by a separator and then transforms the splits into results. A parameter specifies how the separator is compared for equality.
Public methodStatic memberSplitTSource, TResult(IEnumerableTSource, TSource, Int32, FuncIEnumerableTSource, TResult)
Splits the source sequence by a separator, given a maximum count of splits, and then transforms the splits into results.
Public methodStatic memberSplitTSource, TResult(IEnumerableTSource, TSource, IEqualityComparerTSource, Int32, FuncIEnumerableTSource, TResult)
Splits the source sequence by a separator, given a maximum count of splits, and then transforms the splits into results. A parameter specifies how the separator is compared for equality.
Public methodStatic memberStartsWithT(IEnumerableT, IEnumerableT)
Determines whether the beginning of the first sequence is equivalent to the second sequence, using the default equality comparer.
Public methodStatic memberStartsWithT(IEnumerableT, IEnumerableT, IEqualityComparerT)
Determines whether the beginning of the first sequence is equivalent to the second sequence, using the specified element equality comparer.
Public methodStatic memberSubsetsT(IEnumerableT)
Returns a sequence of IListT representing all of the subsets of any size that are part of the original sequence. In mathematics, it is equivalent to the power set of a set.
Public methodStatic memberSubsetsT(IEnumerableT, Int32)
Returns a sequence of IListT representing all subsets of a given size that are part of the original sequence. In mathematics, it is equivalent to the combinations or k-subsets of a set.
Public methodStatic memberCode exampleTagFirstLastTSource, TResult
Returns a sequence resulting from applying a function to each element in the source sequence with additional parameters indicating whether the element is the first and/or last of the sequence.
Public methodStatic memberCode exampleTakeEveryTSource
Returns every N-th element of a sequence.
Public methodStatic memberCode exampleTakeLastTSource
Returns a specified number of contiguous elements from the end of a sequence.
Public methodStatic memberTakeUntilTSource
Returns items from the input sequence until the given predicate returns true when applied to the current source item; that item will be the last returned.
Public methodStatic memberThenByT, TKey(IOrderedEnumerableT, FuncT, TKey, OrderByDirection)
Performs a subsequent ordering of elements in a sequence in a particular direction (ascending, descending) according to a key
Public methodStatic memberThenByT, TKey(IOrderedEnumerableT, FuncT, TKey, IComparerTKey, OrderByDirection)
Performs a subsequent ordering of elements in a sequence in a particular direction (ascending, descending) according to a key
Public methodStatic memberToArrayByIndexT(IEnumerableT, FuncT, Int32)
Creates an array from an IEnumerableT where a function is used to determine the index at which an element will be placed in the array.
Public methodStatic memberToArrayByIndexT(IEnumerableT, Int32, FuncT, Int32)
Creates an array of user-specified length from an IEnumerableT where a function is used to determine the index at which an element will be placed in the array.
Public methodStatic memberToArrayByIndexT, TResult(IEnumerableT, FuncT, Int32, FuncT, TResult)
Creates an array from an IEnumerableT where a function is used to determine the index at which an element will be placed in the array. The elements are projected into the array via an additional function.
Public methodStatic memberToArrayByIndexT, TResult(IEnumerableT, FuncT, Int32, FuncT, Int32, TResult)
Creates an array from an IEnumerableT where a function is used to determine the index at which an element will be placed in the array. The elements are projected into the array via an additional function.
Public methodStatic memberToArrayByIndexT, TResult(IEnumerableT, Int32, FuncT, Int32, FuncT, TResult)
Creates an array of user-specified length from an IEnumerableT where a function is used to determine the index at which an element will be placed in the array. The elements are projected into the array via an additional function.
Public methodStatic memberToArrayByIndexT, TResult(IEnumerableT, Int32, FuncT, Int32, FuncT, Int32, TResult)
Creates an array of user-specified length from an IEnumerableT where a function is used to determine the index at which an element will be placed in the array. The elements are projected into the array via an additional function.
Public methodStatic memberToDataTableT(IEnumerableT)
Converts a sequence to a DataTable object.
Public methodStatic memberToDataTableT(IEnumerableT, ExpressionFuncT, Object)
Appends elements in the sequence as rows of a given DataTable object with a set of lambda expressions specifying which members (property or field) of each element in the sequence will supply the column values.
Public methodStatic memberToDataTableT, TTable(IEnumerableT, TTable)
Appends elements in the sequence as rows of a given DataTable object.
Public methodStatic memberToDataTableT, TTable(IEnumerableT, TTable, ExpressionFuncT, Object)
Appends elements in the sequence as rows of a given DataTable object with a set of lambda expressions specifying which members (property or field) of each element in the sequence will supply the column values.
Public methodStatic memberToDelimitedString(IEnumerableBoolean, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableByte, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableChar, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableDecimal, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableDouble, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableInt16, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableInt32, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableInt64, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableSByte, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableSingle, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableString, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableUInt16, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableUInt32, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedString(IEnumerableUInt64, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDelimitedStringTSource(IEnumerableTSource, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToDictionaryTKey, TValue(IEnumerableKeyValuePairTKey, TValue)
Creates a DictionaryTKey, TValue from a sequence of KeyValuePairTKey, TValue elements.
Public methodStatic memberToDictionaryTKey, TValue(IEnumerableValueTupleTKey, TValue)
Creates a DictionaryTKey, TValue from a sequence of tuples of 2 where the first item is the key and the second the value.
Public methodStatic memberToDictionaryTKey, TValue(IEnumerableKeyValuePairTKey, TValue, IEqualityComparerTKey)
Creates a DictionaryTKey, TValue from a sequence of KeyValuePairTKey, TValue elements. An additional parameter specifies a comparer for keys.
Public methodStatic memberToDictionaryTKey, TValue(IEnumerableValueTupleTKey, TValue, IEqualityComparerTKey)
Creates a DictionaryTKey, TValue from a sequence of tuples of 2 where the first item is the key and the second the value. An additional parameter specifies a comparer for keys.
Public methodStatic memberToHashSetTSource(IEnumerableTSource)
Returns a HashSetT of the source items using the default equality comparer for the type.
Public methodStatic memberToHashSetTSource(IEnumerableTSource, IEqualityComparerTSource)
Returns a HashSetT of the source items using the specified equality comparer for the type.
Public methodStatic memberToLookupTKey, TValue(IEnumerableKeyValuePairTKey, TValue)
Creates a ILookupTKey, TElement from a sequence of KeyValuePairTKey, TValue elements.
Public methodStatic memberToLookupTKey, TValue(IEnumerableValueTupleTKey, TValue)
Creates a Lookup from a sequence of tuples of 2 where the first item is the key and the second the value.
Public methodStatic memberToLookupTKey, TValue(IEnumerableKeyValuePairTKey, TValue, IEqualityComparerTKey)
Creates a ILookupTKey, TElement from a sequence of KeyValuePairTKey, TValue elements. An additional parameter specifies a comparer for keys.
Public methodStatic memberToLookupTKey, TValue(IEnumerableValueTupleTKey, TValue, IEqualityComparerTKey)
Creates a Lookup from a sequence of tuples of 2 where the first item is the key and the second the value. An additional parameter specifies a comparer for keys.
Public methodStatic memberTraceTSource(IEnumerableTSource)
Traces the elements of a source sequence for diagnostics.
Public methodStatic memberTraceTSource(IEnumerableTSource, FuncTSource, String)
Traces the elements of a source sequence for diagnostics using a custom formatter.
Public methodStatic memberTraceTSource(IEnumerableTSource, String)
Traces the elements of a source sequence for diagnostics using custom formatting.
Public methodStatic memberCode exampleTransposeT
Transposes a sequence of rows into a sequence of columns.
Public methodStatic memberTraverseBreadthFirstT
Traverses a tree in a breadth-first fashion, starting at a root node and using a user-defined function to get the children at each node of the tree.
Public methodStatic memberTraverseDepthFirstT
Traverses a tree in a depth-first fashion, starting at a root node and using a user-defined function to get the children at each node of the tree.
Public methodStatic memberUnfoldTState, T, TResult
Returns a sequence generated by applying a state to the generator function, and from its result, determines if the sequence should have a next element, its value, and the next state in the recursive call.
Public methodStatic memberWindowTSource
Processes a sequence into a series of subsequences representing a windowed subset of the original
Public methodStatic memberWindowedTSource Obsolete.
Processes a sequence into a series of subsequences representing a windowed subset of the original
Public methodStatic memberCode exampleWindowLeftTSource
Creates a left-aligned sliding window of a given size over the source sequence.
Public methodStatic memberCode exampleWindowRightTSource
Creates a right-aligned sliding window over the source sequence of a given size.
Public methodStatic memberCode exampleZipLongestTFirst, TSecond, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TSecond, TResult)
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences. The resulting sequence will always be as long as the longest of input sequences where the default value of each of the shorter sequence element types is used for padding.
Public methodStatic memberCode exampleZipLongestT1, T2, T3, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, FuncT1, T2, T3, TResult)
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences. The resulting sequence will always be as long as the longest of input sequences where the default value of each of the shorter sequence element types is used for padding.
Public methodStatic memberCode exampleZipLongestT1, T2, T3, T4, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, FuncT1, T2, T3, T4, TResult)
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences. The resulting sequence will always be as long as the longest of input sequences where the default value of each of the shorter sequence element types is used for padding.
Public methodStatic memberCode exampleZipShortestTFirst, TSecond, TResult(IEnumerableTFirst, IEnumerableTSecond, FuncTFirst, TSecond, TResult)
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences. The resulting sequence is as short as the shortest input sequence.
Public methodStatic memberCode exampleZipShortestT1, T2, T3, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, FuncT1, T2, T3, TResult)
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences. The resulting sequence is as short as the shortest input sequence.
Public methodStatic memberCode exampleZipShortestT1, T2, T3, T4, TResult(IEnumerableT1, IEnumerableT2, IEnumerableT3, IEnumerableT4, FuncT1, T2, T3, T4, TResult)
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences. The resulting sequence is as short as the shortest input sequence.
Top
See Also