MoreLinq
MoreEnumerable Class
NamespacesMoreLinqMoreEnumerable
Provides a set of static methods for querying objects that implement IEnumerable<(Of <(<'T>)>)>. The actual methods are implemented in files reflecting the method name.
Declaration Syntax
C#Visual BasicVisual C++
public static class MoreEnumerable
<ExtensionAttribute> _
Public NotInheritable Class MoreEnumerable
[ExtensionAttribute]
public ref class MoreEnumerable abstract sealed
Members
All MembersMethods



IconMemberDescription
Acquire<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>))
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.

AssertCount<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32)
Asserts that a source sequence contains a given count of elements.

AssertCount<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32, Func<(Of <<'(Int32, Int32, Exception>)>>))
Asserts that a source sequence contains a given count of elements. A parameter specifies the exception to be thrown.

Batch<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32)
Batches the source sequence into sized buckets.

Batch<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32, Func<(Of <<'(IEnumerable<(Of <<'(TSource>)>>), TResult>)>>))
Batches the source sequence into sized buckets and applies a projection to each bucket.

Concat<(Of <<'(T>)>>)(T, IEnumerable<(Of <<'(T>)>>))
Returns a sequence consisting of the head element and the given tail elements.

Concat<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>), T)
Returns a sequence consisting of the head elements and the given tail element.

Consume<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Completely consumes the given sequence. This method uses immediate execution, and doesn't store any data during execution.

DistinctBy<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>))
Returns all distinct elements of the given source, where "distinctness" is determined via a projection and the default eqaulity comparer for the projected type.

DistinctBy<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>), IEqualityComparer<(Of <<'(TKey>)>>))
Returns all distinct elements of the given source, where "distinctness" is determined via a projection and the specified comparer for the projected type.

EquiZip<(Of <<'(TFirst, TSecond, TResult>)>>)(IEnumerable<(Of <<'(TFirst>)>>), IEnumerable<(Of <<'(TSecond>)>>), Func<(Of <<'(TFirst, TSecond, TResult>)>>))
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences.

ExceptBy<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>))
Returns the set of elements in the first sequence which aren't in the second sequence, according to a given key selector.

ExceptBy<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>), IEqualityComparer<(Of <<'(TKey>)>>))
Returns the set of elements in the first sequence which aren't in the second sequence, according to a given key selector.

Fold<(Of <<'(T, TResult>)>>)(IEnumerable<(Of <<'(T>)>>), Func<(Of <<'(T, TResult>)>>))
Returns the result of applying a function to a sequence of 1 element.

Fold<(Of <<'(T, TResult>)>>)(IEnumerable<(Of <<'(T>)>>), Func<(Of <<'(T, T, TResult>)>>))
Returns the result of applying a function to a sequence of 2 elements.

Fold<(Of <<'(T, TResult>)>>)(IEnumerable<(Of <<'(T>)>>), Func<(Of <<'(T, T, T, TResult>)>>))
Returns the result of applying a function to a sequence of 3 elements.

Fold<(Of <<'(T, TResult>)>>)(IEnumerable<(Of <<'(T>)>>), Func<(Of <<'(T, T, T, T, TResult>)>>))
Returns the result of applying a function to a sequence of 4 elements.

ForEach<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>), Action<(Of <<'(T>)>>))
Immediately executes the given action on each element in the source sequence.

Generate<(Of <<'(TResult>)>>)(TResult, Func<(Of <<'(TResult, TResult>)>>))
Returns a sequence of values consecutively generated by a generator function.

GenerateByIndex<(Of <<'(TResult>)>>)(Func<(Of <<'(Int32, TResult>)>>))
Returns a sequence of values based on indexes.

GroupAdjacent<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>))
Groups the adjacent elements of a sequence according to a specified key selector function.

GroupAdjacent<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>), IEqualityComparer<(Of <<'(TKey>)>>))
Groups the adjacent elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.

GroupAdjacent<(Of <<'(TSource, TKey, TElement>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>), Func<(Of <<'(TSource, 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.

GroupAdjacent<(Of <<'(TSource, TKey, TElement>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>), Func<(Of <<'(TSource, TElement>)>>), IEqualityComparer<(Of <<'(TKey>)>>))
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.

Index<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>))
Returns a sequence of KeyValuePair<(Of <(<'TKey, TValue>)>)> where the key is the zero-based index of the value in the source sequence.

Index<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32)
Returns a sequence of KeyValuePair<(Of <(<'TKey, TValue>)>)> where the key is the index of the value in the source sequence. An additional parameter specifies the starting index.

MaxBy<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>))
Returns the maximal element of the given sequence, based on the given projection.

MaxBy<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>), IComparer<(Of <<'(TKey>)>>))
Returns the maximal element of the given sequence, based on the given projection and the specified comparer for projected values.

MinBy<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>))
Returns the minimal element of the given sequence, based on the given projection.

MinBy<(Of <<'(TSource, TKey>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TKey>)>>), IComparer<(Of <<'(TKey>)>>))
Returns the minimal element of the given sequence, based on the given projection and the specified comparer for projected values.

Pad<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32)
Pads a sequence with default values if it is narrower (shorter in length) than a given width.

Pad<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32, TSource)
Pads a sequence with a given filler value if it is narrower (shorter in length) than a given width.

Pad<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32, Func<(Of <<'(Int32, TSource>)>>))
Pads a sequence with a dynamic filler value if it is narrower (shorter in length) than a given width.

Pairwise<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TSource, 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.

Pipe<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>), Action<(Of <<'(T>)>>))
Executes the given action on each element in the source sequence and yields it.

Prepend<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource)
Prepends a single value to a sequence.

PreScan<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TSource, TSource>)>>), TSource)
Performs a pre-scan (exclusive prefix sum) on a sequence of elements.

Scan<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, TSource, TSource>)>>))
Peforms a scan (inclusive prefix sum) on a sequence of elements.

SingleOrFallback<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource>)>>))
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.

SkipUntil<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, Boolean>)>>))
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.

Split<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource)
Splits the source sequence by a separator.

Split<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, Int32)
Splits the source sequence by a separator given a maximum count of splits.

Split<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, Func<(Of <<'(IEnumerable<(Of <<'(TSource>)>>), TResult>)>>))
Splits the source sequence by a separator and then transforms the splits into results.

Split<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, Int32, Func<(Of <<'(IEnumerable<(Of <<'(TSource>)>>), TResult>)>>))
Splits the source sequence by a separator, given a maximum count of splits, and then transforms the splits into results.

Split<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, IEqualityComparer<(Of <<'(TSource>)>>))
Splits the source sequence by a separator and then transforms the splits into results.

Split<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, IEqualityComparer<(Of <<'(TSource>)>>), Int32)
Splits the source sequence by a separator, given a maximum count of splits. A parameter specifies how the separator is compared for equality.

Split<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, IEqualityComparer<(Of <<'(TSource>)>>), Func<(Of <<'(IEnumerable<(Of <<'(TSource>)>>), 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.

Split<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), TSource, IEqualityComparer<(Of <<'(TSource>)>>), Int32, Func<(Of <<'(IEnumerable<(Of <<'(TSource>)>>), 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.

Split<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, Boolean>)>>))
Splits the source sequence by a separator function.

Split<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, Boolean>)>>), Int32)
Splits the source sequence by a separator function, given a maximum count of splits.

Split<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, Boolean>)>>), Func<(Of <<'(IEnumerable<(Of <<'(TSource>)>>), TResult>)>>))
Splits the source sequence by a separator function and then transforms the splits into results.

Split<(Of <<'(TSource, TResult>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, Boolean>)>>), Int32, Func<(Of <<'(IEnumerable<(Of <<'(TSource>)>>), TResult>)>>))
Splits the source sequence by a separator function, given a maximum count of splits, and then transforms the splits into results.

TakeEvery<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32)
Returns every N-th element of a source sequence.

TakeLast<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Int32)
Returns a specified number of contiguous elements from the end of a sequence.

TakeUntil<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, Boolean>)>>))
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.

ToDataTable<(Of <<'(T, TTable>)>>)(IEnumerable<(Of <<'(T>)>>), TTable, array<Expression<(Of <<'(Func<(Of <<'(T, 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.

ToDataTable<(Of <<'(T, TTable>)>>)(IEnumerable<(Of <<'(T>)>>), TTable)
Appends elements in the sequence as rows of a given DataTable object.

ToDataTable<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>), array<Expression<(Of <<'(Func<(Of <<'(T, 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.

ToDataTable<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>))
Converts a sequence to a DataTable object.

ToDelimitedString(IEnumerable<(Of <<'(String>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(String>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(Boolean>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(Boolean>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(SByte>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(SByte>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(Byte>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(Byte>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(Char>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(Char>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(Int16>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(Int16>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(Int32>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(Int32>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(Int64>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(Int64>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(Single>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(Single>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(Double>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(Double>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(Decimal>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(Decimal>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(UInt16>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(UInt16>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(UInt32>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(UInt32>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString(IEnumerable<(Of <<'(UInt64>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString(IEnumerable<(Of <<'(UInt64>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToDelimitedString<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>))
Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.

ToDelimitedString<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), String)
Creates a delimited string from a sequence of values and a given delimiter.

ToHashSet<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>))
Returns a HashSet<(Of <(<'T>)>)> of the source items using the default equality comparer for the type.

ToHashSet<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), IEqualityComparer<(Of <<'(TSource>)>>))
Returns a HashSet<(Of <(<'T>)>)> of the source items using the specified equality comparer for the type.

Trace<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>))
Traces the elements of a source sequence for diagnostics.

Trace<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), String)
Traces the elements of a source sequence for diagnostics using custom formatting.

Trace<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), Func<(Of <<'(TSource, String>)>>))
Traces the elements of a source sequence for diagnostics using a custom formatter.

Zip<(Of <<'(TFirst, TSecond, TResult>)>>)(IEnumerable<(Of <<'(TFirst>)>>), IEnumerable<(Of <<'(TSecond>)>>), Func<(Of <<'(TFirst, TSecond, TResult>)>>))
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences.

ZipLongest<(Of <<'(TFirst, TSecond, TResult>)>>)(IEnumerable<(Of <<'(TFirst>)>>), IEnumerable<(Of <<'(TSecond>)>>), Func<(Of <<'(TFirst, TSecond, TResult>)>>))
Returns a projection of tuples, where each tuple contains the N-th element from each of the argument sequences.

Inheritance Hierarchy
Object
MoreEnumerable

Assembly: MoreLinq (Module: MoreLinq.dll) Version: 1.0.16006.0 (1.0.16006.1845)