Utf8JsonReader.GetSingle Utf8JsonReader.GetSingle Utf8JsonReader.GetSingle 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 represents a number less than MinValue or greater than MaxValue.

Remarks

The GetSingle method throws an exception if the entire UTF-8 encoded token value cannnot be parsed to a Single value.

Applies to

See also