Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: T[] Subarray<T>(this T[], int, int)

Declaration

public static T[] Subarray<T>(
    this T[] array,
    int startIndex,
    int length
)

Summary

Similar to string.Substring(int, int), but for arrays. Returns a new array containing length items from the specified startIndex onwards.

Generic type parameters

TThis type parameter is not documented.

Remarks

Returns a new copy of the array even if startIndex is 0 and length is the length of the input array.