Skip to content

YamlEvent.Anchor Property

Definition

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

Anchor()

Gets the anchor name (without the leading &) if the node has an anchor, or an empty span otherwise.

public ReadOnlySpan<byte> Anchor { get; }

Returns

ReadOnlySpan<byte>

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