Table of Contents

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

value string

The string value.

Properties

Kind

Gets the kind of this value.

public override JsonValueKind Kind { get; }

Property Value

JsonValueKind

Value

Gets the string value.

public string Value { get; }

Property Value

string

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.