CastArrayTFrom, TToCast3DT Method

Reinterprets this CastArrayTFrom, TTo as a three-dimensional CastArray3DTFrom, 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 CastArray3D<TFrom, T> Cast3D<T>(
	int depth,
	int height,
	int width
)
where T : struct, new()

Parameters

depth  Int32
The depth of the array to be returned.
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

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

See Also