YamlConverterAttribute Class
Specifies a custom YamlConverter 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 YamlConverterAttribute : YamlAttribute- Inheritance
YamlAttributeYamlConverterAttribute
Constructors
| Name | Description |
|---|---|
| YamlConverterAttribute(Type) | Initializes a new instance of the YamlConverterAttribute class. |
YamlConverterAttribute(Type)
YamlConverterAttribute.csInitializes a new instance of the YamlConverterAttribute class.
public YamlConverterAttribute(Type converterType)Parameters
converterTypeType- The converter type.
Exceptions
ArgumentNullExceptionconverterTypeisnull.
Properties
| Name | Description |
|---|---|
| ConverterType | Gets the converter type. |