YamlSourceGenerationMode enum
The generation mode for the System.Text.Yaml source generator.
Namespace: System.Text.Yaml.Serialization ยท Assembly: Styml.dll
[Flags]
public enum YamlSourceGenerationMode
The generation mode for the System.Text.Yaml source generator.
FieldsLink to this heading
| Name | Value | Description |
|---|---|---|
Default |
0 | When specified on YamlSourceGenerationOptionsAttribute.GenerationMode, indicates that both type-metadata initialization logic and optimized serialization logic should be generated for all types. When specified on YamlSerializableAttribute.GenerationMode, indicates that the setting on YamlSourceGenerationOptionsAttribute.GenerationMode should be used. |
Metadata |
1 | Instructs the YAML source generator to generate type-metadata initialization logic. |
Serialization |
2 | Instructs the YAML source generator to generate optimized serialization logic. |