BitConverterNGetBytesTNumeric Method
Returns the specified numeric value as an array of bytes.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static byte[] GetBytes<TNumeric>(
TNumeric value
)
where TNumeric : struct, new(), INumeric<TNumeric>
Public Shared Function GetBytes(Of TNumeric As {Structure, New, INumeric(Of TNumeric)}) (
value As TNumeric
) As Byte()
public:
generic<typename TNumeric>
where TNumeric : value class, gcnew(), INumeric<TNumeric>
static array<unsigned char>^ GetBytes(
TNumeric value
)
static member GetBytes :
value : 'TNumeric -> byte[] when 'TNumeric : struct, new() and INumeric<'TNumeric>
- value TNumeric
- The number to convert.
- TNumeric
ByteAn array of bytes with length determined by
ConvertedSize.