ArraySectionTSlice(Int32, Int32) Method

Gets a new ArraySectionT instance, which represents a subsection of the current instance with the specified startIndex and length.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public ArraySection<T> Slice(
	int startIndex,
	int length
)

Parameters

startIndex  Int32
The offset that points to the first item of the returned section.
length  Int32
The desired length of the returned section.

Return Value

ArraySectionT
The subsection of the current ArraySectionT instance with the specified startIndex and length.

Exceptions

ArgumentOutOfRangeExceptionstartIndex or length is out of range.

See Also