PeanutButter
Loading...
Searching...
No Matches
PeanutButter.RandomGenerators.EnumerableExtensions Class Reference

Provides extensions for generic IEnumerable collections. More...

Static Public Member Functions

static IEnumerable< T > Randomize< T > (this IEnumerable< T > input)
 Takes an input collection and returns a new collection which is the input collection in random order.
static IList< T > Randomize< T > (this IList< T > input)
 Takes an input collection and returns a new collection which is the input collection in random order.

Detailed Description

Provides extensions for generic IEnumerable collections.

Member Function Documentation

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

IEnumerable< T > PeanutButter.RandomGenerators.EnumerableExtensions.Randomize< T > ( this IEnumerable< T > input)
static

Takes an input collection and returns a new collection which is the input collection in random order.

Parameters
inputCollection to randomize
Template Parameters
TItem type of the collection
Returns
A new collection with the same items as the original, but in random order

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

IList< T > PeanutButter.RandomGenerators.EnumerableExtensions.Randomize< T > ( this IList< T > input)
static

Takes an input collection and returns a new collection which is the input collection in random order.

Parameters
inputCollection to randomize
Template Parameters
TItem type of the collection
Returns
A new collection with the same items as the original, but in random order

The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.RandomGenerators/EnumerableExtensions.cs