CastArrayTFrom, TToCast2DT Method

Reinterprets this CastArrayTFrom, TTo as a two-dimensional CastArray2DTFrom, TTo struct, casting the TTo type of this CastArrayTFrom, TTo to type T.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public CastArray2D<TFrom, T> Cast2D<T>(
	int height,
	int width
)
where T : struct, new()

Parameters

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

Type Parameters

T
The new desired type instead of the original TTo.

Return Value

CastArray2DTFrom, T
A CastArray2DTFrom, TTo instance where original TTo type is replaced to T.

See Also