CsvConverter Class

Converts a value of a column to or from text. Derive from CsvConverter<T> or CsvConverterFactory.

public abstract class CsvConverter

Properties

NameDescription
TypeToConvertGets the type the converter converts, or null for a CsvConverterFactory.

TypeToConvert

Gets the type the converter converts, or null for a CsvConverterFactory.

public abstract Type? TypeToConvert { get; }

Property value

Type?

Methods

NameDescription
CanConvert(Type)Determines whether the converter converts values of the specified type.

CanConvert(Type)

Determines whether the converter converts values of the specified type.

public abstract bool CanConvert(Type typeToConvert)

Parameters

typeToConvert Type
The type of the values.

Returns

bool true when the converter converts values of typeToConvert; otherwise, false.