![]() |
VOOZH | about |
JsonPointer Struct
Namespace: Json.Pointer
Inheritance: JsonPointer 🡒 ValueType 🡒 object
Implemented interfaces:
Represents a JSON Pointer as defined in RFC 6901. This implementation is optimized for minimal allocations.
| Name | Type | Summary |
|---|---|---|
| Empty | JsonPointer | Represents an empty JSON Pointer. |
| Name | Type | Summary |
|---|---|---|
| Item | JsonPointerSegment | Gets a segment from the pointer by index. |
| SegmentCount | int | Gets the number of segments in the pointer. |
Combines this pointer with another pointer.
1
public JsonPointer Combine(JsonPointer other)
| Parameter | Type | Description |
|---|---|---|
| other | JsonPointer | The pointer to append |
A new pointer representing the combination
Combines this pointer with additional segments.
1
public JsonPointer Combine(params SegmentValueStandIn[] segments)
| Parameter | Type | Description |
|---|---|---|
| segments | params SegmentValueStandIn[] | The segments to append |
A new pointer representing the combination
This method incurs allocation costs for string concatenation and array creation. For better performance with large numbers of segments, consider using Json.Pointer.JsonPointer.Parse(System.ReadOnlySpan{System.Char}).
Creates a new JSON Pointer from segments.
1
public static JsonPointer Create(params SegmentValueStandIn[] segments)
| Parameter | Type | Description |
|---|---|---|
| segments | params SegmentValueStandIn[] | The segments to combine. |
A new JSON Pointer.
This method incurs allocation costs for string concatenation and array creation. For better performance with large pointers, consider using Json.Pointer.JsonPointer.Parse(System.ReadOnlySpan{System.Char}).
Determines whether the current JSON pointer ends with the specified JSON pointer.
1
public bool EndsWith(JsonPointer other)
| Parameter | Type | Description |
|---|---|---|
| other | JsonPointer | The JSON pointer to compare with the end of the current pointer. Cannot be null. |
true if the current JSON pointer ends with the specified pointer; otherwise, false.
Compares this pointer with another pointer for equality.
1
public bool Equals(JsonPointer other)
Indicates whether this instance and a specified object are equal.
1
public override bool Equals(object obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current instance. |
A new version of content is available.