PixelCrushers.ListExtensions Class Reference

Extension methods for generic lists. More...

Static Public Member Functions

static void AddSorted< T > (this List< T > @this, T item)
 Adds an item to a list in sorted order.
 
static void Shuffle< T > (this List< T > @this)
 Fisher-Yates shuffle.
 

Detailed Description

Extension methods for generic lists.

Member Function Documentation

◆ AddSorted< T >()

static void PixelCrushers.ListExtensions.AddSorted< T > ( this List< T > @  this,
item 
)
inlinestatic

Adds an item to a list in sorted order.

The list items must implement IComparable.

Parameters
thisThis list.
itemItem to add.
Template Parameters
TThe list type.
Type Constraints
T :IComparable<T> 

◆ Shuffle< T >()

static void PixelCrushers.ListExtensions.Shuffle< T > ( this List< T > @  this)
inlinestatic

Fisher-Yates shuffle.


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