TomlConverterAttribute Class

Specifies a custom TomlConverter to use when serializing or deserializing a member or type.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)]
public sealed class TomlConverterAttribute : TomlAttribute
Inheritance
TomlAttribute TomlConverterAttribute

Constructors

NameDescription
TomlConverterAttribute(Type)Initializes a new instance of the TomlConverterAttribute class.

TomlConverterAttribute(Type)

TomlConverterAttribute.cs

Initializes a new instance of the TomlConverterAttribute class.

public TomlConverterAttribute(Type converterType)

Parameters

converterType Type
The converter type.

Properties

NameDescription
ConverterTypeGets the converter type.

Gets the converter type.

public Type ConverterType { get; }

Property value

Type