Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BinaryReader.ReadDecimal Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Reads a decimal value from the current stream and advances the current position of the stream by sixteen bytes.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

public virtual decimal ReadDecimal()

Return Value

Type: System.Decimal
A decimal value read from the current stream.

ExceptionCondition
EndOfStreamException

The end of the stream is reached.

ObjectDisposedException

The stream is closed.

IOException

An I/O error occurs.

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

Windows Phone OS

Supported in: 8.1, 8.0

Show: