Skip to content

JsonBoolean.Implicit Operator

Definition

Namespace: Corvus.Text.Json.AsyncApi.Internal
Assembly: Corvus.Text.Json.dll

Overloads

Operator Description
implicit operator bool(JsonBoolean)
implicit operator JsonElement(JsonBoolean) Converts the instance to a JsonElement.
implicit operator JsonBoolean(JsonElement) Converts the instance from a JsonElement.

implicit operator bool(JsonBoolean)

public static implicit operator bool(JsonBoolean value)

Parameters

Name Type Description
value JsonBoolean

Returns

bool

Applies To

Product Versions
.NET 9, 10

implicit operator JsonElement(JsonBoolean)

Converts the instance to a JsonElement.

public static implicit operator JsonElement(JsonBoolean instance)

Parameters

Name Type Description
instance JsonBoolean

Returns

JsonElement

An instance of JsonElement, initialized from the IJsonElement.

Applies To

Product Versions
.NET 9, 10

implicit operator JsonBoolean(JsonElement)

Converts the instance from a JsonElement.

public static implicit operator JsonBoolean(JsonElement instance)

Parameters

Name Type Description
instance JsonElement

Returns

JsonBoolean

An instance of the type, initialized from the JsonElement.

Applies To

Product Versions
.NET 9, 10

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