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
Kind
Gets the kind of this value.
public override JsonValueKind Kind { get; }
Property Value
True
Gets the true instance.
public static JsonBoolean True { get; }
Property Value
Value
Gets a value indicating whether this boolean is JSON true.
public bool Value { get; }
Property Value
Methods
Equals(JsonValue?)
Indicates whether the current object is equal to another object of the same type.
public override bool Equals(JsonValue? other)
Parameters
otherJsonValueAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.