System.IO.BinaryReader.ReadUInt64 Method

Reads an 8-byte unsigned integer from the current stream and advances the position of the stream by eight bytes.

Syntax

[System.CLSCompliant(false)]
public virtual ulong ReadUInt64 ()

Returns

An 8-byte unsigned integer read from this stream.

Remarks

System.IO.BinaryReader does not restore the file position after an unsuccessful read.

BinaryReader reads this data type in little-endian format.

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0