Declares a root type for a source-generated YamlSerializerContext.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class YamlSerializableAttribute : YamlAttribute
Apply this attribute to a YamlSerializerContext-derived partial class once per root type that should have generated YAML metadata.
kind:method, kind:property, kind:ctor. Press Esc to clear.YamlSerializableAttribute(Type)Initializes a new instance of the YamlSerializableAttribute class.TypeGets the root type that should have generated YAML metadata.TypeInfoPropertyNameGets or sets the generated YamlTypeInfo property name exposed on the context.