PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.FluencyExtensions Class Reference

Add fluency anywhere - as if all things were buildable! More...

Static Public Member Functions

static T With< T > (this T subject, Action< T > mutator)
 Add fluency for any object - all things can be builders now.
 
static IList< T > WithAll< T > (this IList< T > subject, Action< T > mutator)
 Apply a transform to every object in a collection.
 
static IEnumerable< T > WithAll< T > (this IEnumerable< T > subject, Action< T > mutator)
 Apply a transform to every object in a collection.
 
static T[] WithAll< T > (this T[] subject, Action< T > mutator)
 Apply a transform to every object in an array.
 

Detailed Description

Add fluency anywhere - as if all things were buildable!

Member Function Documentation

◆ With< T >()

static T PeanutButter.Utils.FluencyExtensions.With< T > ( this T  subject,
Action< T >  mutator 
)
static

Add fluency for any object - all things can be builders now.

Parameters
subject
mutator
Template Parameters
T
Returns

◆ WithAll< T >() [1/3]

static IEnumerable< T > PeanutButter.Utils.FluencyExtensions.WithAll< T > ( this IEnumerable< T >  subject,
Action< T >  mutator 
)
static

Apply a transform to every object in a collection.

Parameters
subject
mutator
Template Parameters
T
Returns

◆ WithAll< T >() [2/3]

static IList< T > PeanutButter.Utils.FluencyExtensions.WithAll< T > ( this IList< T >  subject,
Action< T >  mutator 
)
static

Apply a transform to every object in a collection.

Parameters
subject
mutator
Template Parameters
T
Returns

◆ WithAll< T >() [3/3]

static T[] PeanutButter.Utils.FluencyExtensions.WithAll< T > ( this T[]  subject,
Action< T >  mutator 
)
static

Apply a transform to every object in an array.

Parameters
subject
mutator
Template Parameters
T
Returns

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