Extensions methods for arrays.
More...
|
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...
|
|
Extensions methods for arrays.
◆ 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
-
T | Type of the array elements. |
- Parameters
-
array | Source array |
start | Start index of the slice |
length | Length of the slice |
- Returns
- Subarray of type T containing length elements from array .
- Exceptions
-
ArgumentOutOfRangeException | If 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
-
T | Type of the array elements. |
- Parameters
-
array | Source array |
start | Start index of the slice |
length | Length of the slice |
- Returns
- Subarray of type T containing length elements from array .
- Exceptions
-
ArgumentOutOfRangeException | If 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: