CsvConverterAttribute Class

Sets the converter of a property or a field.

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class CsvConverterAttribute : CsvAttribute
Inheritance
CsvAttribute CsvConverterAttribute

Constructors

NameDescription
CsvConverterAttribute(Type)Sets the converter of a property or a field.

CsvConverterAttribute(Type)

CsvConverterAttribute.cs

Sets the converter of a property or a field.

public CsvConverterAttribute(Type converterType)

Parameters

converterType Type
The type of the converter, a CsvConverter<T> or a CsvConverterFactory with a public parameterless constructor.

Properties

NameDescription
ConverterTypeGets the type of the converter.

Gets the type of the converter.

public Type ConverterType { get; }

Property value

Type