TomlDerivedTypeMappingAttribute(Type, Type, Int32) Constructor

Definition

Assembly Tomlyn.dll

Initializes a new instance of the TomlDerivedTypeMappingAttribute class with an integer discriminator.

public TomlDerivedTypeMappingAttribute(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.