Static Public Member Functions | List of all members
EnumerableExtensions Class Reference

Contains extensions for IEnumerable<T>. More...

Static Public Member Functions

static IEnumerable< T > Do< T > (this IEnumerable< T > items, Action< T > action)
 
static IEnumerable< T > ConfigureInteractor< T > (this IEnumerable< T > interactors, Action< T > action)
 Configures a sequence of interactors of type T with the specified action. More...
 
static IEnumerable< T > ConfigureBehavior< T > (this IEnumerable< T > behaviors, Action< T > action)
 Configures a sequence of behaviors of type T with the specified action. More...
 
static T ConfigureInteractor< T > (this T interactor, Action< T > action)
 Configures an interactor of type T with the specified action. More...
 
static T ConfigureBehavior< T > (this T behavior, Action< T > action)
 Configures a behavior of type T with the specified action. More...
 
static IEnumerable< U > Scan< T, U > (this IEnumerable< T > input, U state, Func< U, T, U > next)
 

Detailed Description

Contains extensions for IEnumerable<T>.

Member Function Documentation

◆ Do< T >()

static IEnumerable<T> Do< T > ( this IEnumerable< T >  items,
Action< T >  action 
)
inlinestatic

◆ ConfigureInteractor< T >() [1/2]

static IEnumerable<T> ConfigureInteractor< T > ( this IEnumerable< T >  interactors,
Action< T >  action 
)
inlinestatic

Configures a sequence of interactors of type T with the specified action.

Template Parameters
TThe interactor type.
Parameters
interactorsThe interactors.
actionThe configuration action.
Returns
The same IEnumerable<T> instance so that multiple calls can be chained.
Type Constraints
T :IInteractor 

◆ ConfigureBehavior< T >() [1/2]

static IEnumerable<T> ConfigureBehavior< T > ( this IEnumerable< T >  behaviors,
Action< T >  action 
)
inlinestatic

Configures a sequence of behaviors of type T with the specified action.

Template Parameters
TThe behavior type.
Parameters
behaviorsThe behaviors.
actionThe configuration action.
Returns
The same IEnumerable<T> instance so that multiple calls can be chained.
Type Constraints
T :IBehavior 

◆ ConfigureInteractor< T >() [2/2]

static T ConfigureInteractor< T > ( this T  interactor,
Action< T >  action 
)
inlinestatic

Configures an interactor of type T with the specified action.

Template Parameters
TThe interactor type.
Parameters
interactorThe interactor.
actionThe configuration action.
Returns
The same T instance so that multiple calls can be chained.
Type Constraints
T :IInteractor 

◆ ConfigureBehavior< T >() [2/2]

static T ConfigureBehavior< T > ( this T  behavior,
Action< T >  action 
)
inlinestatic

Configures a behavior of type T with the specified action.

Template Parameters
TThe interactor type.
Parameters
behaviorThe behavior.
actionThe configuration action.
Returns
The same T instance so that multiple calls can be chained.
Type Constraints
T :IBehavior 

◆ Scan< T, U >()

static IEnumerable<U> Scan< T, U > ( this IEnumerable< T >  input,
state,
Func< U, T, U >  next 
)
inlinestatic

The documentation for this class was generated from the following file: