The package contains an extension method for arrays.
Create an array with a subpart of the original array
Parameters
Type | Name | Description |
---|---|---|
int | index | The place to start extracting the sub array from. 0 based. |
int | length | Number of elements to copy, starting from the original index. |
Example
// Using Statement using ManoSoftware.Extensions.Array; ... // Declare Array char[] myArray = {'a', 'b', 'c', 'd', 'e'}; // Extract SubArray var newArray = myArray.SubArray(1, 2); // newArray contains the values {'b','c'}