CastArrayTFrom, TToCast2DT Method
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public CastArray2D<TFrom, T> Cast2D<T>(
int height,
int width
)
where T : struct, new()
Public Function Cast2D(Of T As {Structure, New}) (
height As Integer,
width As Integer
) As CastArray2D(Of TFrom, T)
public:
generic<typename T>
where T : value class, gcnew()
CastArray2D<TFrom, T> Cast2D(
int height,
int width
)
member Cast2D :
height : int *
width : int -> CastArray2D<'TFrom, 'T> when 'T : struct, new()
- height Int32
- The height of the array to be returned.
- width Int32
- The width of the array to be returned.
- T
- The new desired type instead of the original TTo.
CastArray2DTFrom,
TA
CastArray2DTFrom, TTo instance where original
TTo type is replaced to
T.