YamlDerivedTypeMappingAttribute(Type, Type, Int32) Constructor

Definition

Assembly SharpYaml.dll

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.