Registers a derived type for polymorphic YAML serialization.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true)]
public sealed class YamlDerivedTypeAttribute : YamlAttribute
kind:method, kind:property, kind:ctor. Press Esc to clear.YamlDerivedTypeAttribute(Type, Int32)Initializes a new instance of the YamlDerivedTypeAttribute class with an integer discriminator.YamlDerivedTypeAttribute(Type, String)Initializes a new instance of the YamlDerivedTypeAttribute class.YamlDerivedTypeAttribute(Type)Initializes a new instance of the YamlDerivedTypeAttribute class with no discriminator. When Tag is also null, this derived type becomes the default when no discriminator or tag matches. When Tag is set, this entry participates only in tag-based dispatch and does not become the default.DerivedTypeGets the derived CLR type.DiscriminatorGets the discriminator value, or null if this is the default derived type.TagGets or sets an optional explicit YAML tag for the derived type.