INumericBitConverterTNumericToNumeric(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.

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
TNumeric ToNumeric(
	byte[] value,
	int startIndex
)

Parameters

value  Byte
An array of bytes.
startIndex  Int32
The starting position within value.

Return Value

TNumeric
A numeric value formed by bytes beginning at startIndex.

Exceptions

ArgumentExceptionstartIndex is greater than or equal to the length of value plus one, minus the number returned by ConvertedSize, and is less than or equal to the length of value minus 1.
ArgumentNullExceptionvalue is null.
ArgumentOutOfRangeExceptionstartIndex is less than zero or greater than the length of value minus 1.

See Also