RuntimeHelpers.GetSubArray<T>(T[], Range) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
- T
The type of the elements in the array.
- array
- T[]
The array to slice.
- range
- Range
An object that determines the portion of array
to include in the slice.
The subarray defined by range
.
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: