Skip to content

Utf8JsonReader.TryGetUInt64 Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: Utf8JsonReader.TryGet.cs

TryGetUInt64(ref ulong)

Parses the current JSON token value from the source as a UInt64. Returns true if the entire UTF-8 encoded token value can be successfully parsed to a UInt64 value. Returns false otherwise.

public bool TryGetUInt64(ref ulong value)

Parameters

Name Type Description
value ref ulong

Returns

bool

Exceptions

Exception Description
InvalidOperationException Thrown if trying to get the value of a JSON token that is not a Number.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue