Utf8JsonReader.GetDecimal Method

Definition

Reads the next JSON token value from the source and parses it to a Decimal.

public:
 System::Decimal GetDecimal();
public decimal GetDecimal ();
member this.GetDecimal : unit -> decimal
Public Function GetDecimal () As Decimal

Returns

The UTF-8 encoded token value parsed to a Decimal.

Exceptions

The JSON token value isn't a Number.

The JSON token value represents a number less than Decimal.MinValue or greater than Decimal.MaxValue.

Applies to

See also