XEnumerable Class |
Namespace: Linq.Extras
The XEnumerable type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AppendTSource | Obsolete.
Appends the specified element to the specified sequence.
|
![]() ![]() | BatchTSource |
Splits the input sequence into a sequence of batches of the specified size.
|
![]() ![]() | CommonPrefixTSource |
Returns the common prefix of two sequences, according to the specified comparer.
|
![]() ![]() | DenseRankByTSource, TKey, TResult |
Associates an ascending dense rank to each element of the input sequence, based on the specified key and key comparer.
|
![]() ![]() | DenseRankByDescendingTSource, TKey, TResult |
Associates a descending dense rank to each element of the input sequence, based on the specified key and key comparer.
|
![]() ![]() | DistinctByTSource, TKey |
Returns a sequence with distinct elements from the input sequence based on the specified key and key comparer.
|
![]() ![]() | DistinctUntilChangedTSource |
Returns a sequence with distinct adjacent elements from the input sequence based on the specified comparer.
|
![]() ![]() | DistinctUntilChangedByTSource, TKey |
Returns a sequence with distinct adjacent elements from the input sequence based on the specified key and key comparer.
|
![]() ![]() | ElementAtOrDefaultTSource |
Returns the element at a specified index in a sequence, or the specified default value if the index is out of range.
|
![]() ![]() | EmptyTSource |
Produces an empty sequence.
|
![]() ![]() | ExceptByTSource, TKey |
Produces the set difference of two sequences by using the specified key and key comparer to test for equality between elements.
|
![]() ![]() | FirstOrDefaultTSource(IEnumerableTSource, TSource) |
Returns the first element of a sequence or the specified default value if the sequence contains no elements.
|
![]() ![]() | FirstOrDefaultTSource(IEnumerableTSource, FuncTSource, Boolean, TSource) |
Returns the first element of the sequence that satisfies a condition or the specied default value if no such element is found.
|
![]() ![]() | FlattenTNode(IEnumerableTNode, FuncTNode, IEnumerableTNode, TreeTraversalMode) |
Returns a flattened sequence from a graph or hierarchy of elements, using the specified children selector,
and in the specified traversal order.
|
![]() ![]() | FlattenTNode, TResult(IEnumerableTNode, FuncTNode, IEnumerableTNode, TreeTraversalMode, FuncTNode, TResult) |
Returns a flattened sequence from a graph or hierarchy of elements, using the specified children selector,
and in the specified traversal order.
|
![]() ![]() | FlattenTNode, TResult(IEnumerableTNode, FuncTNode, IEnumerableTNode, TreeTraversalMode, FuncTNode, Int32, TResult) |
Returns a flattened sequence from a graph or hierarchy of elements, using the specified children selector,
and in the specified traversal order.
|
![]() ![]() | FullOuterJoinTLeft, TRight, TKey, TResult |
Produces the full outer join of two sequences.
|
![]() ![]() | GenerateTElement(FuncInt32, TElement) |
Generates a sequence from an index-based generator function.
|
![]() ![]() | GenerateTElement(TElement, FuncTElement, TElement) |
Generates a sequence from a seed and a generator function.
|
![]() ![]() | GroupUntilChangedTSource |
Groups equal adjacent elements from the input sequence based on the specified comparer.
|
![]() ![]() | GroupUntilChangedByTSource, TKey |
Groups adjacent elements from the input sequence that have the same value for the specified key, according to the specified key comparer.
|
![]() ![]() | IndexOfTSource(IEnumerableTSource, FuncTSource, Boolean) |
Returns the position of the first element of source that verifies the specified predicate, or -1 if it is not found.
|
![]() ![]() | IndexOfTSource(IEnumerableTSource, TSource, IEqualityComparerTSource) |
Returns the position of the first occurrence of item in the source sequence, or -1 if it is not found.
|
![]() ![]() | IndexOfSubstringTSource |
Returns the position of the first occurrence of the specified substring in the source sequence, or -1 if it is not found.
|
![]() ![]() | IntersectByTSource, TKey |
Produces the set intersection of two sequences, based on the specified key and key comparer.
|
![]() ![]() | IsNullOrEmpty(IEnumerable) |
Indicates whether a sequence is null or empty.
|
![]() ![]() | IsNullOrEmptyTSource(IEnumerableTSource) |
Indicates whether a sequence is null or empty.
|
![]() ![]() | LastIndexOfTSource(IEnumerableTSource, FuncTSource, Boolean) |
Returns the position of the last element of source that verifies the specified predicate, or -1 if it is not found.
|
![]() ![]() | LastIndexOfTSource(IEnumerableTSource, TSource, IEqualityComparerTSource) |
Returns the position of the last occurrence of item in the source sequence, or -1 if it is not found.
|
![]() ![]() | LastOrDefaultTSource(IEnumerableTSource, TSource) |
Returns the last element of a sequence or the specified default value if the sequence contains no elements.
|
![]() ![]() | LastOrDefaultTSource(IEnumerableTSource, FuncTSource, Boolean, TSource) |
Returns the last element of the sequence that satisfies a condition or the specied default value if no such element is found.
|
![]() ![]() | LeftOuterJoinTLeft, TRight, TKey, TResult |
Produces the left outer join of two sequences.
|
![]() ![]() | MaxTSource |
Returns the maximum element of the sequence according to the specified comparer.
|
![]() ![]() | MaxByTSource, TKey |
Returns the element of the sequence that has the maximum value for the specified key.
|
![]() ![]() | MinTSource |
Returns the minimum element of the sequence according to the specified comparer.
|
![]() ![]() | MinByTSource, TKey |
Returns the element of the sequence that has the minimum value for the specified key.
|
![]() ![]() | NoneTSource(IEnumerableTSource) |
Checks if the sequence is empty.
|
![]() ![]() | NoneTSource(IEnumerableTSource, FuncTSource, Boolean) |
Checks if the sequence contains no element that matches the predicate.
|
![]() ![]() | PrependTSource | Obsolete.
Prepends the specified element to the specified sequence.
|
![]() ![]() | RankByTSource, TKey, TResult |
Associates an ascending rank to each element of the input sequence, based on the specified key and key comparer.
|
![]() ![]() | RankByDescendingTSource, TKey, TResult |
Associates a descending rank to each element of the input sequence, based on the specified key and key comparer.
|
![]() ![]() | RightOuterJoinTLeft, TRight, TKey, TResult |
Produces the right outer join of two sequences.
|
![]() ![]() | SequenceEqualByTSource, TKey |
Determines whether two sequences are equal by comparing their elements using the specified key and key comparer.
|
![]() ![]() | SingleOrDefaultTSource(IEnumerableTSource, TSource) |
Returns the only element of a sequence, or the specified default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
|
![]() ![]() | SingleOrDefaultTSource(IEnumerableTSource, FuncTSource, Boolean, TSource) |
Returns the only element of a sequence that satisfies a specified condition, or the specified default value if no such element exists; this method throws an exception if more than one element satisfies the condition.
|
![]() ![]() | ToArrayTSource |
Creates an array from the elements in the source sequence. Unlike ToArrayTSource(IEnumerableTSource),
this method takes the number of elements as a parameter, so that it can allocate an array of the right size
from the start, hence suppressing the need for subsequent allocations and improving performance.
|
![]() ![]() | ToHashSetTSource | Obsolete.
Creates a hash set from the elements in the source sequence.
|
![]() ![]() | ToHierarchyTSource, TId |
Builds a hierarchy from a flat sequence of elements, based on an Id/ParentId relation.
|
![]() ![]() | ToLinkedListTSource |
Creates a linked list from the elements in the source sequence.
|
![]() ![]() | ToListTSource |
Creates a ListT from the elements in the source sequence. Unlike ToListTSource(IEnumerableTSource),
this method takes the number of elements as a parameter, so that it can allocate a list with sufficient capacity, hence suppressing
the need for subsequent allocations, and improving performance.
|
![]() ![]() | ToQueueTSource |
Creates a queue from the elements in the source sequence.
|
![]() ![]() | ToStackTSource |
Creates a stack from the elements in the source sequence.
|
![]() ![]() | UnionByTSource, TKey |
Produces the set union of two sequences, based on the specified key and key comparer.
|
![]() ![]() | UnitTSource |
Produces a sequence containing a single element.
|
![]() ![]() | WithIndexTSource(IEnumerableTSource) |
Associates an index to each element of the source sequence.
|
![]() ![]() | WithIndexTSource(ListTSource) |
Associates an index to each element of the source ListT.
|
![]() ![]() | WithIndexTSource(TSource) |
Associates an index to each element of the source array.
|
![]() ![]() | WithoutIndexTSource |
Removes the indexes from a sequence of indexed elements, returning only the elements themselves.
|