Vixen
02b45cc4
csharp
public record class YamlScalarConverter

How a type that is not a primitive is written as one scalar, and read back.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (4)

  • public Func<string, object> Parse

    Turns the text into a value.

  • public Func<object, string> Format

    Turns the value into text.

  • public YamlScalarStyle Style

    How the text should be quoted.

  • public bool AcceptsNull

    Whether null in the document is a legal value rather than the absence of one. True for AssetReference, whose null is a real reference to nothing.

Methods (1)

  • public YamlScalarConverter(Func<string, object> Parse, Func<object, string> Format, YamlScalarStyle Style = Any, bool AcceptsNull = false)

    How a type that is not a primitive is written as one scalar, and read back.

Used by (2)

  • YamlScalarConvertersVixen.Core.Yaml
  • YamlSerializerVixen.Core.Yaml