CastArrayTFrom, TTo Constructor

Initializes a new instance of the CastArrayTFrom, TTo struct from the specified ArraySectionT.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public CastArray(
	ArraySection<TFrom> buffer
)

Parameters

buffer  ArraySectionTFrom
The ArraySectionT to initialize the new CastArrayTFrom, TTo from.

Exceptions

ArgumentExceptionLength of buffer is too big, because the Length in TTo elements would exceed Int32.MaxValue.

See Also