public CastArray<TFrom, TTo> Cast<TFrom, TTo>()
where TFrom : struct, new(), T
where TTo : struct, new()
Public Function Cast(Of TFrom As {Structure, New, T}, TTo As {Structure, New}) As CastArray(Of TFrom, TTo)
public:
generic<typename TFrom, typename TTo>
where TFrom : value class, gcnew(), T
where TTo : value class, gcnew()
CastArray<TFrom, TTo> Cast()
member Cast : unit -> CastArray<'TFrom, 'TTo> when 'TFrom : struct, new() and 'T when 'TTo : struct, new()
If the size of TTo cannot be divided by the size of TFrom, then the cast result may not cover the whole original ArraySectionT to prevent exceeding beyond the available buffer.