Struct PathValuePair
Represents a specific location-value pair within a root JSON value.
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 SourcePath
Gets the location of this value within a root JSON value.
Declaration
public readonly JsonLocation Path { get; }
Property Value
Type | Description |
---|---|
JsonLocation |
Value
Gets the value
Declaration
public readonly JsonElement Value { get; }
Property Value
Type | Description |
---|---|
System.Text.Json.JsonElement |
Methods
| Improve this Doc View SourceCompareTo(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. |
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 |
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>