Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.ArrayExt Class Reference

Static Public Member Functions

static ArraySegment< T > Segment< T > (this T[] array, int offset, int count)
 
static T[] Slice< T > (this T[] array, int offset, int count)
 
static void Swap< T > (this T[] array, int index1, int index2)
 
static int IndexOf< T > (this T[] array, T item)
 
static void Shuffle< T > (this T[] array)
 
static void Shuffle< T > (this T[] array, Random random)
 
static void Fill< T > ([NotNull] this T[] array, T value=default)
 
static void Fill< T > ([NotNull] this T[] array, Func< T > generator)
 
static void Fill< T > ([NotNull] this T[] array, Func< int, T > generator)
 

Member Function Documentation

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

static void Megapop.MegaCore.ArrayExt.Fill< T > ( [NotNull] this T[]  array,
Func< int, T >  generator 
)
inlinestatic

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

static void Megapop.MegaCore.ArrayExt.Fill< T > ( [NotNull] this T[]  array,
Func< T >  generator 
)
inlinestatic

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

static void Megapop.MegaCore.ArrayExt.Fill< T > ( [NotNull] this T[]  array,
value = default 
)
inlinestatic

◆ IndexOf< T >()

static int Megapop.MegaCore.ArrayExt.IndexOf< T > ( this T[]  array,
item 
)
inlinestatic

◆ Segment< T >()

static ArraySegment< T > Megapop.MegaCore.ArrayExt.Segment< T > ( this T[]  array,
int  offset,
int  count 
)
inlinestatic

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

static void Megapop.MegaCore.ArrayExt.Shuffle< T > ( this T[]  array)
inlinestatic

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

static void Megapop.MegaCore.ArrayExt.Shuffle< T > ( this T[]  array,
Random  random 
)
inlinestatic

◆ Slice< T >()

static T[] Megapop.MegaCore.ArrayExt.Slice< T > ( this T[]  array,
int  offset,
int  count 
)
inlinestatic

◆ Swap< T >()

static void Megapop.MegaCore.ArrayExt.Swap< T > ( this T[]  array,
int  index1,
int  index2 
)
inlinestatic

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