Class JsonString
- Namespace
- Nerdbank.Json
- Assembly
- Nerdbank.Json.dll
A JSON string value.
public sealed class JsonString : JsonValue, IEquatable<JsonValue>
- Inheritance
-
JsonString
- Implements
- Inherited Members
Constructors
JsonString(string)
Initializes a new instance of the JsonString class.
public JsonString(string value)
Parameters
valuestringThe string value.
Properties
Kind
Gets the kind of this value.
public override JsonValueKind Kind { get; }
Property Value
Value
Gets the string value.
public string 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.