EnumerableEx Class |
Namespace: System.Linq
public static class EnumerableEx
The EnumerableEx type exposes the following members.
Name | Description | |
---|---|---|
BufferTSource(IEnumerableTSource, Int32) |
Generates a sequence of non-overlapping adjacent buffers over the source sequence.
| |
BufferTSource(IEnumerableTSource, Int32, Int32) |
Generates a sequence of buffers over the source sequence, with specified length and possible overlap.
| |
CaseTValue, TResult(FuncTValue, IDictionaryTValue, IEnumerableTResult) |
Returns a sequence from a dictionary based on the result of evaluating a selector function.
| |
CaseTValue, TResult(FuncTValue, IDictionaryTValue, IEnumerableTResult, IEnumerableTResult) |
Returns a sequence from a dictionary based on the result of evaluating a selector function, also specifying a default sequence.
| |
CatchTSource(IEnumerableIEnumerableTSource) |
Creates a sequence by concatenating source sequences until a source sequence completes successfully.
| |
CatchTSource(IEnumerableTSource) |
Creates a sequence by concatenating source sequences until a source sequence completes successfully.
| |
CatchTSource(IEnumerableTSource, IEnumerableTSource) |
Creates a sequence that returns the elements of the first sequence, switching to the second in case of an error.
| |
CatchTSource, TException(IEnumerableTSource, FuncTException, IEnumerableTSource) |
Creates a sequence that corresponds to the source sequence, concatenating it with the sequence resulting from calling an exception handler function in case of an error.
| |
ConcatTSource(IEnumerableIEnumerableTSource) |
Concatenates the input sequences.
| |
ConcatTSource(IEnumerableTSource) |
Concatenates the input sequences.
| |
CreateTResult(FuncIEnumeratorTResult) |
Creates an enumerable sequence based on an enumerator factory function.
| |
CreateT(ActionIYielderT) |
Creates an enumerable sequence based on an asynchronous method that provides a yielder.
| |
DeferTResult |
Creates an enumerable sequence based on an enumerable factory function.
| |
DistinctTSource, TKey(IEnumerableTSource, FuncTSource, TKey) |
Returns elements with a distinct key value by using the default equality comparer to compare key values.
| |
DistinctTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey) |
Returns elements with a distinct key value by using the specified equality comparer to compare key values.
| |
DistinctUntilChangedTSource(IEnumerableTSource) |
Returns consecutive distinct elements by using the default equality comparer to compare values.
| |
DistinctUntilChangedTSource(IEnumerableTSource, IEqualityComparerTSource) |
Returns consecutive distinct elements by using the specified equality comparer to compare values.
| |
DistinctUntilChangedTSource, TKey(IEnumerableTSource, FuncTSource, TKey) |
Returns consecutive distinct elements based on a key value by using the specified equality comparer to compare key values.
| |
DistinctUntilChangedTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey) |
Returns consecutive distinct elements based on a key value by using the specified equality comparer to compare key values.
| |
DoTSource(IEnumerableTSource, ActionTSource) |
Lazily invokes an action for each value in the sequence.
| |
DoTSource(IEnumerableTSource, IObserverTSource) |
Lazily invokes observer methods for each value in the sequence, and upon successful or exceptional termination.
| |
DoTSource(IEnumerableTSource, ActionTSource, Action) |
Lazily invokes an action for each value in the sequence, and executes an action for successful termination.
| |
DoTSource(IEnumerableTSource, ActionTSource, ActionException) |
Lazily invokes an action for each value in the sequence, and executes an action upon exceptional termination.
| |
DoTSource(IEnumerableTSource, ActionTSource, ActionException, Action) |
Lazily invokes an action for each value in the sequence, and executes an action upon successful or exceptional termination.
| |
DoWhileTResult |
Generates an enumerable sequence by repeating a source sequence as long as the given loop postcondition holds.
| |
ExpandTSource |
Expands the sequence by recursively applying a selector function.
| |
FinallyTSource |
Creates a sequence whose termination or disposal of an enumerator causes a finally action to be executed.
| |
ForTSource, TResult |
Generates a sequence by enumerating a source sequence, mapping its elements on result sequences, and concatenating those sequences.
| |
ForEachTSource(IEnumerableTSource, ActionTSource) |
Enumerates the sequence and invokes the given action for each value in the sequence.
| |
ForEachTSource(IEnumerableTSource, ActionTSource, Int32) |
Enumerates the sequence and invokes the given action for each value in the sequence.
| |
GenerateTState, TResult |
Generates a sequence by mimicking a for loop.
| |
HideTSource |
Hides the enumerable sequence object identity.
| |
IfTResult(FuncBoolean, IEnumerableTResult) |
Returns an enumerable sequence if the evaluation result of the given condition is true, otherwise returns an empty sequence.
| |
IfTResult(FuncBoolean, IEnumerableTResult, IEnumerableTResult) |
Returns an enumerable sequence based on the evaluation result of the given condition.
| |
IgnoreElementsTSource |
Ignores all elements in the source sequence.
| |
IsEmptyTSource |
Determines whether an enumerable sequence is empty.
| |
MaxTSource |
Returns the maximum value in the enumerable sequence by using the specified comparer to compare values.
| |
MaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey) |
Returns the elements with the maximum key value by using the default comparer to compare key values.
| |
MaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey) |
Returns the elements with the minimum key value by using the specified comparer to compare key values.
| |
MemoizeTSource(IEnumerableTSource) |
Creates a buffer with a view over the source sequence, causing each enumerator to obtain access to all of the sequence's elements without causing multiple enumerations over the source.
| |
MemoizeTSource(IEnumerableTSource, Int32) |
Creates a buffer with a view over the source sequence, causing a specified number of enumerators to obtain access to all of the sequence's elements without causing multiple enumerations over the source.
| |
MemoizeTSource, TResult(IEnumerableTSource, FuncIEnumerableTSource, IEnumerableTResult) |
Memoizes the source sequence within a selector function where each enumerator can get access to all of the sequence's elements without causing multiple enumerations over the source.
| |
MemoizeTSource, TResult(IEnumerableTSource, Int32, FuncIEnumerableTSource, IEnumerableTResult) |
Memoizes the source sequence within a selector function where a specified number of enumerators can get access to all of the sequence's elements without causing multiple enumerations over the source.
| |
MinTSource |
Returns the minimum value in the enumerable sequence by using the specified comparer to compare values.
| |
MinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey) |
Returns the elements with the minimum key value by using the default comparer to compare key values.
| |
MinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey) |
Returns the elements with the minimum key value by using the specified comparer to compare key values.
| |
OnErrorResumeNextTSource(IEnumerableIEnumerableTSource) |
Creates a sequence that concatenates the given sequences, regardless of whether an error occurs in any of the sequences.
| |
OnErrorResumeNextTSource(IEnumerableTSource) |
Creates a sequence that concatenates the given sequences, regardless of whether an error occurs in any of the sequences.
| |
OnErrorResumeNextTSource(IEnumerableTSource, IEnumerableTSource) |
Creates a sequence that concatenates both given sequences, regardless of whether an error occurs.
| |
PublishTSource(IEnumerableTSource) |
Creates a buffer with a view over the source sequence, causing each enumerator to obtain access to the remainder of the sequence from the current index in the buffer.
| |
PublishTSource, TResult(IEnumerableTSource, FuncIEnumerableTSource, IEnumerableTResult) |
Publishes the source sequence within a selector function where each enumerator can obtain a view over a tail of the source sequence.
| |
RepeatTSource(IEnumerableTSource) |
Repeats and concatenates the source sequence infinitely.
| |
RepeatTResult(TResult) |
Generates a sequence by repeating the given value infinitely.
| |
RepeatTSource(IEnumerableTSource, Int32) |
Repeats and concatenates the source sequence the given number of times.
| |
RepeatTResult(TResult, Int32) |
Generates a sequence that contains one repeated value.
| |
RetryTSource(IEnumerableTSource) |
Creates a sequence that retries enumerating the source sequence as long as an error occurs.
| |
RetryTSource(IEnumerableTSource, Int32) |
Creates a sequence that retries enumerating the source sequence as long as an error occurs, with the specified maximum number of retries.
| |
ReturnTResult |
Returns a sequence with a single element.
| |
ScanTSource(IEnumerableTSource, FuncTSource, TSource, TSource) |
Generates a sequence of accumulated values by scanning the source sequence and applying an accumulator function.
| |
ScanTSource, TAccumulate(IEnumerableTSource, TAccumulate, FuncTAccumulate, TSource, TAccumulate) |
Generates a sequence of accumulated values by scanning the source sequence and applying an accumulator function.
| |
SelectManyTSource, TOther |
Projects each element of a sequence to an given sequence and flattens the resulting sequences into one sequence.
| |
ShareTSource(IEnumerableTSource) |
Creates a buffer with a shared view over the source sequence, causing each enumerator to fetch the next element from the source sequence.
| |
ShareTSource, TResult(IEnumerableTSource, FuncIEnumerableTSource, IEnumerableTResult) |
Shares the source sequence within a selector function where each enumerator can fetch the next element from the source sequence.
| |
SkipLastTSource |
Bypasses a specified number of contiguous elements from the end of the sequence and returns the remaining elements.
| |
StartWithTSource |
Returns the source sequence prefixed with the specified value.
| |
TakeLastTSource |
Returns a specified number of contiguous elements from the end of the sequence.
| |
ThrowTResult |
Returns a sequence that throws an exception upon enumeration.
| |
UsingTSource, TResource |
Generates a sequence that's dependent on a resource object whose lifetime is determined by the sequence usage duration.
| |
WhileTResult |
Generates an enumerable sequence by repeating a source sequence as long as the given loop condition holds.
|