Utf8JsonReader.GetDecimal Method

Definition

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

C#
public decimal GetDecimal();

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

Produkt Versioner
.NET Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

See also