ArraySectionT(T, Int32) Constructor
Initializes a new instance of the
ArraySectionT struct from the specified
array
using the specified
offset.
No heap allocation occurs when using this constructor overload.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public ArraySection(
T[] array,
int offset
)
Public Sub New (
array As T(),
offset As Integer
)
public:
ArraySection(
array<T>^ array,
int offset
)
new :
array : 'T[] *
offset : 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.