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