Click or drag to resize

ExtSubArrayT Method (T, Int64, Int64)

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

Namespace:  Sfs2X.WebSocketSharp
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public static T[] SubArray<T>(
	this T[] array,
	long startIndex,
	long length
)

Parameters

array
Type: T
An array of T from which to retrieve a sub-array.
startIndex
Type: SystemInt64
A Int64 that represents the zero-based starting position of a sub-array in array.
length
Type: SystemInt64
A Int64 that represents the number of elements to retrieve.

Type Parameters

T
The type of elements in array.

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also