YamlDerivedTypeMappingAttribute(Type, Type, String) Constructor

Definition

Assembly SharpYaml.dll

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.