Click or drag to resize
EnumerableEx Class
Provides a set of additional static methods that allow querying enumerable sequences.
Inheritance Hierarchy
SystemObject
  System.LinqEnumerableEx

Namespace: System.Linq
Assembly: System.Interactive (in System.Interactive.dll) Version: 1.2.0.0
Syntax
C#
public static class EnumerableEx

The EnumerableEx type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBufferTSource(IEnumerableTSource, Int32)
Generates a sequence of non-overlapping adjacent buffers over the source sequence.
Public methodStatic memberBufferTSource(IEnumerableTSource, Int32, Int32)
Generates a sequence of buffers over the source sequence, with specified length and possible overlap.
Public methodStatic memberCaseTValue, TResult(FuncTValue, IDictionaryTValue, IEnumerableTResult)
Returns a sequence from a dictionary based on the result of evaluating a selector function.
Public methodStatic memberCaseTValue, 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.
Public methodStatic memberCatchTSource(IEnumerableIEnumerableTSource)
Creates a sequence by concatenating source sequences until a source sequence completes successfully.
Public methodStatic memberCatchTSource(IEnumerableTSource)
Creates a sequence by concatenating source sequences until a source sequence completes successfully.
Public methodStatic memberCatchTSource(IEnumerableTSource, IEnumerableTSource)
Creates a sequence that returns the elements of the first sequence, switching to the second in case of an error.
Public methodStatic memberCatchTSource, 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.
Public methodStatic memberConcatTSource(IEnumerableIEnumerableTSource)
Concatenates the input sequences.
Public methodStatic memberConcatTSource(IEnumerableTSource)
Concatenates the input sequences.
Public methodStatic memberCreateTResult(FuncIEnumeratorTResult)
Creates an enumerable sequence based on an enumerator factory function.
Public methodStatic memberCreateT(ActionIYielderT)
Creates an enumerable sequence based on an asynchronous method that provides a yielder.
Public methodStatic memberDeferTResult
Creates an enumerable sequence based on an enumerable factory function.
Public methodStatic memberDistinctTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns elements with a distinct key value by using the default equality comparer to compare key values.
Public methodStatic memberDistinctTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)
Returns elements with a distinct key value by using the specified equality comparer to compare key values.
Public methodStatic memberDistinctUntilChangedTSource(IEnumerableTSource)
Returns consecutive distinct elements by using the default equality comparer to compare values.
Public methodStatic memberDistinctUntilChangedTSource(IEnumerableTSource, IEqualityComparerTSource)
Returns consecutive distinct elements by using the specified equality comparer to compare values.
Public methodStatic memberDistinctUntilChangedTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns consecutive distinct elements based on a key value by using the specified equality comparer to compare key values.
Public methodStatic memberDistinctUntilChangedTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)
Returns consecutive distinct elements based on a key value by using the specified equality comparer to compare key values.
Public methodStatic memberDoTSource(IEnumerableTSource, ActionTSource)
Lazily invokes an action for each value in the sequence.
Public methodStatic memberDoTSource(IEnumerableTSource, IObserverTSource)
Lazily invokes observer methods for each value in the sequence, and upon successful or exceptional termination.
Public methodStatic memberDoTSource(IEnumerableTSource, ActionTSource, Action)
Lazily invokes an action for each value in the sequence, and executes an action for successful termination.
Public methodStatic memberDoTSource(IEnumerableTSource, ActionTSource, ActionException)
Lazily invokes an action for each value in the sequence, and executes an action upon exceptional termination.
Public methodStatic memberDoTSource(IEnumerableTSource, ActionTSource, ActionException, Action)
Lazily invokes an action for each value in the sequence, and executes an action upon successful or exceptional termination.
Public methodStatic memberDoWhileTResult
Generates an enumerable sequence by repeating a source sequence as long as the given loop postcondition holds.
Public methodStatic memberExpandTSource
Expands the sequence by recursively applying a selector function.
Public methodStatic memberFinallyTSource
Creates a sequence whose termination or disposal of an enumerator causes a finally action to be executed.
Public methodStatic memberForTSource, TResult
Generates a sequence by enumerating a source sequence, mapping its elements on result sequences, and concatenating those sequences.
Public methodStatic memberForEachTSource(IEnumerableTSource, ActionTSource)
Enumerates the sequence and invokes the given action for each value in the sequence.
Public methodStatic memberForEachTSource(IEnumerableTSource, ActionTSource, Int32)
Enumerates the sequence and invokes the given action for each value in the sequence.
Public methodStatic memberGenerateTState, TResult
Generates a sequence by mimicking a for loop.
Public methodStatic memberHideTSource
Hides the enumerable sequence object identity.
Public methodStatic memberIfTResult(FuncBoolean, IEnumerableTResult)
Returns an enumerable sequence if the evaluation result of the given condition is true, otherwise returns an empty sequence.
Public methodStatic memberIfTResult(FuncBoolean, IEnumerableTResult, IEnumerableTResult)
Returns an enumerable sequence based on the evaluation result of the given condition.
Public methodStatic memberIgnoreElementsTSource
Ignores all elements in the source sequence.
Public methodStatic memberIsEmptyTSource
Determines whether an enumerable sequence is empty.
Public methodStatic memberMaxTSource
Returns the maximum value in the enumerable sequence by using the specified comparer to compare values.
Public methodStatic memberMaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns the elements with the maximum key value by using the default comparer to compare key values.
Public methodStatic memberMaxByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)
Returns the elements with the minimum key value by using the specified comparer to compare key values.
Public methodStatic memberCode exampleMemoizeTSource(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.
Public methodStatic memberMemoizeTSource(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.
Public methodStatic memberMemoizeTSource, 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.
Public methodStatic memberMemoizeTSource, 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.
Public methodStatic memberMinTSource
Returns the minimum value in the enumerable sequence by using the specified comparer to compare values.
Public methodStatic memberMinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)
Returns the elements with the minimum key value by using the default comparer to compare key values.
Public methodStatic memberMinByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)
Returns the elements with the minimum key value by using the specified comparer to compare key values.
Public methodStatic memberOnErrorResumeNextTSource(IEnumerableIEnumerableTSource)
Creates a sequence that concatenates the given sequences, regardless of whether an error occurs in any of the sequences.
Public methodStatic memberOnErrorResumeNextTSource(IEnumerableTSource)
Creates a sequence that concatenates the given sequences, regardless of whether an error occurs in any of the sequences.
Public methodStatic memberOnErrorResumeNextTSource(IEnumerableTSource, IEnumerableTSource)
Creates a sequence that concatenates both given sequences, regardless of whether an error occurs.
Public methodStatic memberCode examplePublishTSource(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.
Public methodStatic memberPublishTSource, 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.
Public methodStatic memberRepeatTSource(IEnumerableTSource)
Repeats and concatenates the source sequence infinitely.
Public methodStatic memberRepeatTResult(TResult)
Generates a sequence by repeating the given value infinitely.
Public methodStatic memberRepeatTSource(IEnumerableTSource, Int32)
Repeats and concatenates the source sequence the given number of times.
Public methodStatic memberRepeatTResult(TResult, Int32)
Generates a sequence that contains one repeated value.
Public methodStatic memberRetryTSource(IEnumerableTSource)
Creates a sequence that retries enumerating the source sequence as long as an error occurs.
Public methodStatic memberRetryTSource(IEnumerableTSource, Int32)
Creates a sequence that retries enumerating the source sequence as long as an error occurs, with the specified maximum number of retries.
Public methodStatic memberReturnTResult
Returns a sequence with a single element.
Public methodStatic memberScanTSource(IEnumerableTSource, FuncTSource, TSource, TSource)
Generates a sequence of accumulated values by scanning the source sequence and applying an accumulator function.
Public methodStatic memberScanTSource, TAccumulate(IEnumerableTSource, TAccumulate, FuncTAccumulate, TSource, TAccumulate)
Generates a sequence of accumulated values by scanning the source sequence and applying an accumulator function.
Public methodStatic memberSelectManyTSource, TOther
Projects each element of a sequence to an given sequence and flattens the resulting sequences into one sequence.
Public methodStatic memberCode exampleShareTSource(IEnumerableTSource)
Creates a buffer with a shared view over the source sequence, causing each enumerator to fetch the next element from the source sequence.
Public methodStatic memberShareTSource, TResult(IEnumerableTSource, FuncIEnumerableTSource, IEnumerableTResult)
Shares the source sequence within a selector function where each enumerator can fetch the next element from the source sequence.
Public methodStatic memberSkipLastTSource
Bypasses a specified number of contiguous elements from the end of the sequence and returns the remaining elements.
Public methodStatic memberStartWithTSource
Returns the source sequence prefixed with the specified value.
Public methodStatic memberTakeLastTSource
Returns a specified number of contiguous elements from the end of the sequence.
Public methodStatic memberThrowTResult
Returns a sequence that throws an exception upon enumeration.
Public methodStatic memberUsingTSource, TResource
Generates a sequence that's dependent on a resource object whose lifetime is determined by the sequence usage duration.
Public methodStatic memberWhileTResult
Generates an enumerable sequence by repeating a source sequence as long as the given loop condition holds.
Top
See Also