LinqExtensions Class

Summary

LinqExtensions.
Assembly
Rocket.Surgery.Linq.Extensions.dll
Namespace
System.Linq
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["LinqExtensions"] class Type type-node

Syntax

public static class LinqExtensions

Attributes

Type Description
NullableContextAttribute
NullableAttribute
PublicAPIAttribute

Methods

Name Value Summary
Filter<TSource>(IEnumerable<TSource>, Func<TSource, bool>) IEnumerable<TSource>
Filters a sequence of values based on a predicate.
static
Filter<TSource>(IEnumerable<TSource>, Func<TSource, int, bool>) IEnumerable<TSource>
Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.
static
Map<TSource, TResult>(IEnumerable<TSource>, Func<TSource, int, TResult>) IEnumerable<TResult>
Projects each element of a sequence into a new form by incorporating the element's index.
static
Map<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>) IEnumerable<TResult>
Projects each element of a sequence into a new form.
static
MergeMap<TSource, TCollection, TResult>(IEnumerable<TSource>, Func<TSource, IEnumerable<TCollection>>, Func<TSource, TCollection, TResult>) IEnumerable<TResult>
Projects each element of a sequence to an System.Collections.Generic.IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.
static
MergeMap<TSource, TCollection, TResult>(IEnumerable<TSource>, Func<TSource, int, IEnumerable<TCollection>>, Func<TSource, TCollection, TResult>) IEnumerable<TResult>
Projects each element of a sequence to an System.Collections.Generic.IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element.
static
MergeMap<TSource, TResult>(IEnumerable<TSource>, Func<TSource, IEnumerable<TResult>>) IEnumerable<TResult>
Projects each element of a sequence to an System.Collections.Generic.IEnumerable`1 and flattens the resulting sequences into one sequence.
static
MergeMap<TSource, TResult>(IEnumerable<TSource>, Func<TSource, int, IEnumerable<TResult>>) IEnumerable<TResult>
Projects each element of a sequence to an System.Collections.Generic.IEnumerable`1, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element.
static
Reduce<TSource, TAccumulate, TResult>(IEnumerable<TSource>, TAccumulate, Func<TAccumulate, TSource, TAccumulate>, Func<TAccumulate, TResult>) TResult
Applies an accumulator function over an sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value, and the specified result selector function is used to select the result value.
static
Reduce<TSource, TAccumulate>(IEnumerable<TSource>, TAccumulate, Func<TAccumulate, TSource, TAccumulate>) TAccumulate
Applies an accumulator function over an sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value. For aggregation behavior with incremental intermediate results.
static
Reduce<TSource>(IEnumerable<TSource>, Func<TSource, TSource, TSource>) TSource
Applies an accumulator function over an sequence, returning the result of the aggregation as a single element in the result sequence. For aggregation behavior with incremental intermediate results.
static