Επεξεργασία

Κοινή χρήση μέσω


RuntimeHelpers.GetSubArray<T>(T[], Range) Method

Definition

Slices the specified array using the specified range.

public:
generic <typename T>
 static cli::array <T> ^ GetSubArray(cli::array <T> ^ array, Range range);
public static T[] GetSubArray<T> (T[] array, Range range);
static member GetSubArray : 'T[] * Range -> 'T[]
Public Shared Function GetSubArray(Of T) (array As T(), range As Range) As T()

Type Parameters

T

The type of the elements in the array.

Parameters

array
T[]

The array to slice.

range
Range

An object that determines the portion of array to include in the slice.

Returns

T[]

The subarray defined by range.

Applies to