YamlSerializableAttribute Class

Definition

Assembly SharpYaml.dll
Inherits ObjectAttributeYamlAttribute
Show inherited members (42)

Declares a root type for a source-generated YamlSerializerContext.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class YamlSerializableAttribute : YamlAttribute

Remarks

Apply this attribute to a YamlSerializerContext-derived partial class once per root type that should have generated YAML metadata.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (2)