Provides YAML scalar parsing helpers aligned with the YAML 1.2 core schema conventions used by YamlSerializer.
public static class YamlScalar
kind:method, kind:property, kind:ctor. Press Esc to clear.IsNull(YamlReader)Determines whether the current scalar token represents YAML null while honoring scalar style and UseSchema.IsNull(ReadOnlySpan<Char>)Determines whether a scalar represents YAML null (for example null or ~).TryParseBool(YamlReader, out Boolean)Parses the current scalar token as a YAML boolean while honoring scalar style and UseSchema.TryParseBool(ReadOnlySpan<Char>, out Boolean)Parses a YAML boolean scalar (true/false).TryParseDecimal(YamlReader, out Decimal)Parses the current scalar token as a YAML decimal value while honoring scalar style and UseSchema.TryParseDecimal(ReadOnlySpan<Char>, out Decimal)Parses a YAML floating-point scalar into Decimal.TryParseDouble(YamlReader, out Double)Parses the current scalar token as a YAML floating-point value while honoring scalar style and UseSchema.TryParseDouble(ReadOnlySpan<Char>, out Double)Parses a YAML floating-point scalar into Double, including .inf and .nan.TryParseInt32(YamlReader, out Int32)Parses the current scalar token as a YAML integer while honoring scalar style and UseSchema.TryParseInt32(ReadOnlySpan<Char>, out Int32)Parses a YAML integer scalar into Int32.TryParseInt64(YamlReader, out Int64)Parses the current scalar token as a YAML integer while honoring scalar style and UseSchema.TryParseInt64(ReadOnlySpan<Char>, out Int64)Parses a YAML integer scalar into Int64, including common base prefixes (0x, 0o, 0b) and underscores.TryParseUInt32(YamlReader, out UInt32)Parses the current scalar token as an unsigned YAML integer while honoring scalar style and UseSchema.TryParseUInt32(ReadOnlySpan<Char>, out UInt32)Parses a YAML integer scalar into UInt32.TryParseUInt64(YamlReader, out UInt64)Parses the current scalar token as an unsigned YAML integer while honoring scalar style and UseSchema.TryParseUInt64(ReadOnlySpan<Char>, out UInt64)Parses a YAML integer scalar into UInt64, including common base prefixes (0x, 0o, 0b) and underscores.