TomlDerivedTypeAttribute(Type) Constructor

Definition

Assembly Tomlyn.dll

Initializes a new instance of the TomlDerivedTypeAttribute class as the default derived type (no discriminator). When a type is registered without a discriminator, it becomes the default type used when the discriminator property is missing or does not match any registered type.

public TomlDerivedTypeAttribute(Type derivedType)

Parameters

derivedType
Type

The derived CLR type.