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)
public static T[] SubArray<T>(
T[] array,
long startIndex,
long length
)
Public Shared Function SubArray(Of T) ( _
array As T(), _
startIndex As Long, _
length As Long _
) As T()
public:
generic<typename T>
static array<T>^ SubArray(
array<T>^ array,
long long^ startIndex,
long long^ 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: Int64
A Int64 that represents the zero-based starting position of
a sub-array in array.
- length
- Type: Int64
A Int64 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.