BitConverterNToNumericTNumeric(Byte, Int32) Method
Returns a numeric value converted from bytes at a specified position in a byte array.
The number of bytes can be obtained from the
ConvertedSize method.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static TNumeric ToNumeric<TNumeric>(
byte[] value,
int startIndex
)
where TNumeric : struct, new(), INumeric<TNumeric>
Public Shared Function ToNumeric(Of TNumeric As {Structure, New, INumeric(Of TNumeric)}) (
value As Byte(),
startIndex As Integer
) As TNumeric
public:
generic<typename TNumeric>
where TNumeric : value class, gcnew(), INumeric<TNumeric>
static TNumeric ToNumeric(
array<unsigned char>^ value,
int startIndex
)
static member ToNumeric :
value : byte[] *
startIndex : int -> 'TNumeric when 'TNumeric : struct, new() and INumeric<'TNumeric>
- value Byte
- An array of bytes.
- startIndex Int32
- The starting position within value.
- TNumeric
TNumericA numeric value formed by bytes beginning at
startIndex.