ArraySectionT(T, Int32, Int32) Constructor

Initializes a new instance of the ArraySectionT struct from the specified array using the specified offset and length. No heap allocation occurs when using this constructor overload.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public ArraySection(
	T[] array,
	int offset,
	int length
)

Parameters

array  T
The array to initialize the new ArraySectionT instance from.
offset  Int32
The index of the first element in the array to include in the new ArraySectionT.
length  Int32
The number of items to include in the new ArraySectionT.

See Also