Reads YAML tokens for use by YamlConverter implementations.
public sealed class YamlReader : YamlReaderWriterBase
This API is intentionally similar in spirit to System.Text.Json's reader,
but it models YAML constructs (mappings, sequences, scalars).
kind:method, kind:property, kind:ctor. Press Esc to clear.AnchorGets the current YAML anchor (when present) for the current token.EndGets the end location of the current token.ScalarValueGets the current scalar value when TokenType is Scalar.SourceNameGets the optional source name associated with the YAML payload (for example, a file path).StartGets the start location of the current token.TagGets the current YAML tag (when present) for the current token.TokenTypeGets the current token type.BufferCurrentNodeToString(YamlReader)Buffers the current YAML node to a string.BufferCurrentNodeToStringAndFindDiscriminator(YamlReader, String, out String?)Buffers the current YAML node to a string while optionally extracting a discriminator value from the root mapping.Create(TextReader, YamlSerializerOptions?)Creates a YAML reader over a text reader.Create(String, YamlSerializerOptions?)Creates a YAML reader over a string payload.CreateReader(String)Creates a YAML reader over a string payload that shares the current reader's reference anchor state.GetScalarValue()Ensures the current token is Scalar and returns its value.Read()Advances to the next token.RegisterAnchor(String, Object)Registers an anchored value for later alias resolution.Skip()Skips the current node and any nested content.TryReadAlias(out Object?)Attempts to resolve the current alias token into an anchored object value.