C-DEngine 5.105

Ext..::..SubArray<(Of <(<'T>)>)> Method (array<T>[]()[][], Int32, Int32)

Retrieves a sub-array from the specified array. A sub-array starts at the specified element position in array.

Namespace:  WebSocketSharp
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static T[] SubArray<T>(
	T[] array,
	int startIndex,
	int length
)
Public Shared Function SubArray(Of T) ( _
	array As T(), _
	startIndex As Integer, _
	length As Integer _
) As T()
public:
generic<typename T>
static array<T>^ SubArray(
	array<T>^ array, 
	int^ startIndex, 
	int^ length
)

Type Parameters

T
The type of elements in array.

Parameters

array
Type: array<T>[]()[][]
An array of T from which to retrieve a sub-array.
startIndex
Type: Int32
An Int32 that represents the zero-based starting position of a sub-array in array.
length
Type: Int32
An Int32 that represents the number of elements to retrieve.

Return Value

An array of T that receives a sub-array, or an empty array of T if any problems with the parameters.