bovender framework
C# framework that implements MVVM and more
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...
 

Detailed Description

Extensions methods for arrays.

Definition at line 28 of file ArrayExtensions.cs.

Member Function Documentation

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 .

Definition at line 43 of file ArrayExtensions.cs.


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