Table of Contents

Class JsonBoolean

Namespace
Nerdbank.Json
Assembly
Nerdbank.Json.dll

A JSON boolean value.

public sealed class JsonBoolean : JsonValue, IEquatable<JsonValue>
Inheritance
JsonBoolean
Implements
Inherited Members

Properties

False

Gets the false instance.

public static JsonBoolean False { get; }

Property Value

JsonBoolean

Kind

Gets the kind of this value.

public override JsonValueKind Kind { get; }

Property Value

JsonValueKind

True

Gets the true instance.

public static JsonBoolean True { get; }

Property Value

JsonBoolean

Value

Gets a value indicating whether this boolean is JSON true.

public bool Value { get; }

Property Value

bool

Methods

Equals(JsonValue?)

Indicates whether the current object is equal to another object of the same type.

public override bool Equals(JsonValue? other)

Parameters

other JsonValue

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.