TomlDerivedType Class
Represents a derived type mapping for runtime polymorphic TOML configuration.
public sealed class TomlDerivedTypeConstructors
| Name | Description |
|---|---|
| TomlDerivedType(Type) | Initializes a new instance of the TomlDerivedType class with no discriminator. |
| TomlDerivedType(Type, int) | Initializes a new instance of the TomlDerivedType class with an integer discriminator. |
| TomlDerivedType(Type, string) | Initializes a new instance of the TomlDerivedType class with a string discriminator. |
TomlDerivedType overloads
TomlDerivedType(Type)
TomlDerivedType.csInitializes a new instance of the TomlDerivedType class with no discriminator.
public TomlDerivedType(Type derivedType)Parameters
derivedTypeType- The derived CLR type.
TomlDerivedType(Type, int)
TomlDerivedType.csInitializes a new instance of the TomlDerivedType class with an integer discriminator.
TomlDerivedType(Type, string)
TomlDerivedType.csInitializes a new instance of the TomlDerivedType class with a string discriminator.
Properties
| Name | Description |
|---|---|
| DerivedType | Gets the derived CLR type. |
| Discriminator | Gets the discriminator value, or null when this is the default derived type. |