Click or drag to resize
BitConverterToInt64 Method
Returns a 64-bit signed integer converted from eight bytes at a specified position in a byte array.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static long ToInt64(
	byte[] value,
	int startIndex
)

Parameters

value
Type: SystemByte
An array of bytes.
startIndex
Type: SystemInt32
The starting position within value.

Return Value

Type: Int64
A 64-bit signed integer formed by eight bytes beginning at startIndex.
Exceptions
ExceptionCondition
ArgumentExceptionstartIndex is greater than or equal to the length of value minus 7, 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