Daniel's XL Toolbox NG
Bovender.Extensions.ArrayExtensions Class Reference

Extensions methods for arrays. More...

Static Public Member Functions

static T [] Slice< T > (this T[] array, int start, int length)
 Returns a subarray from an array. More...
 
static T [] Slice< T > (this T[] array, int start, int length)
 Returns a subarray from an array. More...
 

Detailed Description

Extensions methods for arrays.

Member Function Documentation

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

static T [] Bovender.Extensions.ArrayExtensions.Slice< T > ( this T []  array,
int  start,
int  length 
)
inlinestatic

Returns a subarray from an array.

Template Parameters
TType of the array elements.
Parameters
arraySource array
startStart index of the slice
lengthLength of the slice
Returns
Subarray of type T containing length elements from array .
Exceptions
ArgumentOutOfRangeExceptionIf length is 0 or less, if start is lower than 0, or if start is larger than the largest index in array .

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

static T [] Bovender.Extensions.ArrayExtensions.Slice< T > ( this T []  array,
int  start,
int  length 
)
inlinestatic

Returns a subarray from an array.

Template Parameters
TType of the array elements.
Parameters
arraySource array
startStart index of the slice
lengthLength of the slice
Returns
Subarray of type T containing length elements from array .
Exceptions
ArgumentOutOfRangeExceptionIf length is 0 or less, if start is lower than 0, or if start is larger than the largest index in array .

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