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.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public ArraySection(
T[] array,
int offset,
int length
)
Public Sub New (
array As T(),
offset As Integer,
length As Integer
)
public:
ArraySection(
array<T>^ array,
int offset,
int length
)
new :
array : 'T[] *
offset : int *
length : int -> ArraySection
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.