Registers a derived type mapping on a source-generated context, enabling cross-project polymorphism.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class YamlDerivedTypeMappingAttribute : YamlAttribute
kind:method, kind:property, kind:ctor. Press Esc to clear.YamlDerivedTypeMappingAttribute(Type, Type, Int32)Initializes a new instance with an integer discriminator.YamlDerivedTypeMappingAttribute(Type, Type, String)Initializes a new instance with a string discriminator.YamlDerivedTypeMappingAttribute(Type, Type)Initializes a new instance with no discriminator, marking this derived type as the default when no discriminator matches.BaseTypeGets the polymorphic base type.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.