Skip to content

JsonBoolean

Definition

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

Generated from JSON Schema.

public readonly struct JsonBoolean : IJsonElement<JsonBoolean>, IJsonElement, IFormattable, ISpanFormattable, IUtf8SpanFormattable

Remarks

Whether the validation passed at this evaluation point.

Implements

IJsonElement<JsonBoolean>, IJsonElement, IFormattable, ISpanFormattable, IUtf8SpanFormattable

Properties

Property Type Description
DefaultInstance static JsonBoolean Gets the default instance.
ValueKind JsonValueKind

Methods

Method Description
Clone() Gets a JsonBoolean which can be safely stored beyond the lifetime of the original document.
CreateBuilder static
Equals
EvaluateSchema(IJsonSchemaResultsCollector?) Evaluate this instance against the JSON Schema for this type.
Freeze() Creates a frozen (immutable) copy of this element if it is backed by a mutable document, or returns this instance if it is already immutable.
From(T) static Gets an instance of the JSON value from another element.
GetHashCode()
ParseValue static Parses one JSON value (including objects or arrays) from the provided span.
ToString
TryFormat
TryGetValue(bool) Tries to get the value as a boolean
TryParseValue(Utf8JsonReader, Nullable<JsonBoolean>) static Attempts to parse one JSON value (including objects or arrays) from the provided reader.
WriteTo(Utf8JsonWriter)

Operators

Operator Description
Equality Operator ==.
Implicit
Inequality Operator !=.

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