Show / Hide Table of Contents

Struct PathValuePair

Represents a specific location-value pair within a root JSON value.

Implements
System.IEquatable<PathValuePair>
System.IComparable<PathValuePair>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: JsonCons.JsonPath
Assembly: JsonCons.JsonPath.dll
Syntax
public readonly struct PathValuePair : IEquatable<PathValuePair>, IComparable<PathValuePair>

Properties

| Improve this Doc View Source

Path

Gets the location of this value within a root JSON value.

Declaration
public readonly JsonLocation Path { get; }
Property Value
Type Description
JsonLocation
| Improve this Doc View Source

Value

Gets the value

Declaration
public readonly JsonElement Value { get; }
Property Value
Type Description
System.Text.Json.JsonElement

Methods

| Improve this Doc View Source

CompareTo(PathValuePair)

Compares this instance with a specified PathValuePair object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified PathValuePair.

Declaration
public readonly int CompareTo(PathValuePair other)
Parameters
Type Name Description
PathValuePair other
Returns
Type Description
System.Int32

true if the value of the other PathValuePair object is the same as the value of this instance; otherwise, false. If other is null, the method returns false.

| Improve this Doc View Source

Equals(PathValuePair)

Determines whether this instance and another specified PathValuePair object have the same value.

Declaration
public readonly bool Equals(PathValuePair other)
Parameters
Type Name Description
PathValuePair other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

Returns the hash code for this PathValuePair.

Declaration
public override readonly int GetHashCode()
Returns
Type Description
System.Int32

A 32-bit signed integer hash code.

Overrides
System.ValueType.GetHashCode()

Implements

System.IEquatable<T>
System.IComparable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX