Skip to content

JsonElement.TryGetBoolean Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonElement.cs

TryGetBoolean(ref bool)

Tries to get the value as a boolean

public bool TryGetBoolean(ref bool value)

Parameters

Name Type Description
value ref bool Provides the boolean value if successful.

Returns

bool

true if the value was a boolean, otherwise false.

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