CastArrayTFrom, TToAs2D Method

Gets this CastArrayTFrom, TTo as an CastArray2DTFrom, TTo instance using the specified height and width. The CastArrayTFrom, TTo must have enough capacity for the specified dimensions.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public CastArray2D<TFrom, TTo> As2D(
	int height,
	int width
)

Parameters

height  Int32
The height of the array to be returned.
width  Int32
The width of the array to be returned.

Return Value

CastArray2DTFrom, TTo
A CastArray2DTFrom, TTo instance using this CastArrayTFrom, TTo as its underlying buffer that has the specified dimensions.

See Also