Utf8JsonReader.GetSingle Method

Definition

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

public:
 float GetSingle();
public float GetSingle ();
member this.GetSingle : unit -> single
Public Function GetSingle () As Single

Returns

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

Exceptions

The JSON token value isn't a Number.

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

Applies to

See also