# YamlDialect

Variants of YAML that some producers write and that the specification does not allow.

Enum 

`OfficeIMO.Yaml`

**Namespace**

`OfficeIMO.Yaml`

**Assembly**

`OfficeIMO.Yaml`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[YamlDialect.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/YamlDialect.cs#L7)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Variants of YAML that some producers write and that the specification does not allow. Each one is opt-in, through [YamlReaderOptions.Dialect](/api/yaml/officeimo-yaml-yamlreaderoptions/) or [YamlLoadOptions.Dialect](/api/yaml/officeimo-yaml-yamlloadoptions/).

## 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](/api/yaml/officeimo-yaml-yamldialect/#field-standard)
- Field [YamlDialect.Unity](/api/yaml/officeimo-yaml-yamldialect/#field-unity)
- Property [YamlLoadOptions.Dialect](/api/yaml/officeimo-yaml-yamlloadoptions/#property-dialect)
- Property [YamlReaderOptions.Dialect](/api/yaml/officeimo-yaml-yamlreaderoptions/#property-dialect)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const YamlDialect Standard` [#](#field-standard)

[YamlDialect.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/YamlDialect.cs#L9)

YAML as the specification defines it, with the leniencies [YamlReaderOptions.Strict](/api/yaml/officeimo-yaml-yamlreaderoptions/) describes.

Value: `0`

`public const YamlDialect Unity` [#](#field-unity)

[YamlDialect.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/YamlDialect.cs#L18)

Unity's serialization files (scenes, prefabs, assets, .meta files). Every document uses the YAML 1.1 schema unless [YamlReaderOptions.Schema](/api/yaml/officeimo-yaml-yamlreaderoptions/) 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](/api/yaml/officeimo-yaml-yamlreader/), [YamlDocumentPart.IsStripped](/api/yaml/officeimo-yaml-yamldocumentpart/)) instead of failing the read.

Value: `1`

<!-- PowerForge markdown artifact sha256:19B09E96C57BC4403FC369651BA7445589CB34D5738FA122B708018CC5661561 -->
