-
Home
-
API
-
SharpYaml.Serialization
-
YamlDerivedTypeMappingAttribute
-
Constructors
-
YamlDerivedTypeMappingAttribute(Type, Type, String)
YamlDerivedTypeMappingAttribute(Type, Type, String) Constructor
Definition
Initializes a new instance with a string discriminator.
public YamlDerivedTypeMappingAttribute(Type baseType, Type derivedType, string discriminator)
Parameters
- baseType
- Type
The polymorphic base type.
- derivedType
- Type
The derived CLR type.
- discriminator
- String
The discriminator value.