TomlDerivedTypeMappingAttribute(Type, Type, String) Constructor

Definition

Assembly Tomlyn.dll

Initializes a new instance of the TomlDerivedTypeMappingAttribute class with a string discriminator.

public TomlDerivedTypeMappingAttribute(Type baseType, Type derivedType, string discriminator)

Parameters

baseType
Type

The polymorphic base type.

derivedType
Type

The derived CLR type.

discriminator
String

The discriminator value.