Skip to content

JsonPointer.Clone Method

Definition

Namespace: Corvus.Text.Json.Patch
Assembly: Corvus.Text.Json.dll

Clone()

Gets a JsonPointer which can be safely stored beyond the lifetime of the original document.

public JsonPointer Clone()

Returns

JsonPointer

A JsonPointer which can be safely stored beyond the lifetime of the original document.

Remarks

If this instance is already a clone (its backing document is not disposable), this method returns the same instance without additional allocation.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue