YamlDialect
OfficeIMO.Yaml
Variants of YAML that some producers write and that the specification does not allow. Each one is opt-in, through YamlReaderOptions.Dialect or YamlLoadOptions.Dialect.
Inheritance
- Enum
- YamlDialect
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
- Field YamlDialect.Standard
- Field YamlDialect.Unity
- Property YamlLoadOptions.Dialect
- Property YamlReaderOptions.Dialect
Inherited Methods
public string ToString(IFormatProvider? provider) #Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
Returns
stringpublic string ToString(string? format, IFormatProvider? provider) #Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format string?
- provider IFormatProvider?
Returns
stringValues
public const YamlDialect Standard #YAML as the specification defines it, with the leniencies YamlReaderOptions.Strict describes.
0public const YamlDialect Unity #Unity's serialization files (scenes, prefabs, assets, .meta files). Every document uses the YAML 1.1 schema unless YamlReaderOptions.Schema is set; a document without %TAG directives uses the directives of the document before it, so !u! tags resolve after the first document; and the word stripped after a document's anchor on its --- line marks the object as a prefab placeholder (YamlReader.IsStripped, YamlDocumentPart.IsStripped) instead of failing the read.
1