ArraySectionTCast3DTFrom, TTo Method
Reinterprets this
ArraySectionT as a three-dimensional
CastArray2DTFrom, TTo struct,
while its element type is cast from
TFrom to
TTo.
This method can be used only when
T in this
ArraySectionT is a value type that contains no references.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public CastArray3D<TFrom, TTo> Cast3D<TFrom, TTo>(
int depth,
int height,
int width
)
where TFrom : struct, new(), T
where TTo : struct, new()
Public Function Cast3D(Of TFrom As {Structure, New, T}, TTo As {Structure, New}) (
depth As Integer,
height As Integer,
width As Integer
) As CastArray3D(Of TFrom, TTo)
public:
generic<typename TFrom, typename TTo>
where TFrom : value class, gcnew(), T
where TTo : value class, gcnew()
CastArray3D<TFrom, TTo> Cast3D(
int depth,
int height,
int width
)
member Cast3D :
depth : int *
height : int *
width : int -> CastArray3D<'TFrom, 'TTo> when 'TFrom : struct, new() and 'T when 'TTo : struct, new()
- 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.
- TFrom
- The actual element type of this ArraySectionT. Must be the same as T.
- TTo
- The reinterpreted element type after casting.
CastArray3DTFrom,
TToA
CastArray2DTFrom, TTo instance for this
ArraySectionT.