HumanReadableConverterAttribute Class
Specifies the converter to use when serializing a type, property, or field.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)]
public sealed class HumanReadableConverterAttribute : HumanReadableAttribute- Inheritance
HumanReadableAttributeHumanReadableConverterAttribute
Constructors
| Name | Description |
|---|---|
| HumanReadableConverterAttribute(HumanReadableConverter) | Initializes a new instance of the HumanReadableConverterAttribute class with a converter instance. |
| HumanReadableConverterAttribute(Type) | Initializes a new instance of the HumanReadableConverterAttribute class with a converter type. |
HumanReadableConverterAttribute overloads
HumanReadableConverterAttribute(HumanReadableConverter)
HumanReadableConverterAttribute.csInitializes a new instance of the HumanReadableConverterAttribute class with a converter instance.
public HumanReadableConverterAttribute(HumanReadableConverter converterInstance)Parameters
converterInstanceHumanReadableConverter- The converter instance to use.
HumanReadableConverterAttribute(Type)
HumanReadableConverterAttribute.csInitializes a new instance of the HumanReadableConverterAttribute class with a converter type.
public HumanReadableConverterAttribute(Type converterType)Parameters
converterTypeType- The type of the converter to use.
Properties
| Name | Description |
|---|---|
| ConverterInstance | Gets the converter instance. |
| ConverterType | Gets the type of the converter. |