Click or drag to resize
MoreEnumerable Methods

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 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 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 memberConcatT(IEnumerableT, T)
Returns a sequence consisting of the head elements and the given tail element.
Public methodStatic memberConcatT(T, IEnumerableT)
Returns a sequence consisting of the head element and the given tail elements.
Public methodStatic memberConsumeT
Completely consumes the given sequence. This method uses immediate execution, and doesn't store any data during execution.
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 memberCode exampleEquiZipTFirst, TSecond, TResult
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences.
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 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 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 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, 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 memberIndexTSource(IEnumerableTSource)
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 memberMaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns the maximal element of the given sequence, based on the given projection.
Public methodStatic memberMaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)
Returns the maximal element 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 element of the given sequence, based on the given projection.
Public methodStatic memberMinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)
Returns the minimal element of the given sequence, based on the given projection and the specified comparer for projected values.
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 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 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 memberCode exampleScanTSource(IEnumerableTSource, FuncTSource, TSource, TSource)
Peforms a scan (inclusive prefix sum) on a sequence of elements.
Public methodStatic memberCode exampleScanTSource, TState(IEnumerableTSource, TState, FuncTState, TSource, TState)
Public methodStatic memberCode exampleSingleOrFallbackTSource
Returns the single element in the given sequence, or the result of executing a fallback delegate if the sequence is empty. This method throws an exception if there is more than one element in 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 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 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 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)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableByte)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableChar)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableDecimal)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableDouble)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableInt16)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableInt32)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableInt64)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableSByte)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableSingle)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableString)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableUInt16)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableUInt32)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedString(IEnumerableUInt64)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
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)
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
Public methodStatic memberToDelimitedStringTSource(IEnumerableTSource, String)
Creates a delimited string from a sequence of values and a given delimiter.
Public methodStatic memberToHashSetTSource(IEnumerableTSource)
Public methodStatic memberToHashSetTSource(IEnumerableTSource, IEqualityComparerTSource)
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 exampleZipTFirst, TSecond, TResult
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences.
Public methodStatic memberCode exampleZipLongestTFirst, TSecond, TResult
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences.
Top
See Also