CsvConverterFactory Class
Creates converters for a family of types, such as the enumerations or the generic instances of a type.
public abstract class CsvConverterFactory : CsvConverter- Inheritance
CsvConverterCsvConverterFactory
Constructors
| Name | Description |
|---|---|
| CsvConverterFactory() | Initializes a new instance of the CsvConverterFactory class. |
CsvConverterFactory()
CsvConverterFactory.csInitializes a new instance of the CsvConverterFactory class.
protected CsvConverterFactory()Properties
| Name | Description |
|---|---|
| TypeToConvert | Gets the type the converter converts, or null for a CsvConverterFactory. |
TypeToConvert
CsvConverterFactory.csGets the type the converter converts, or null for a CsvConverterFactory.
public sealed override Type? TypeToConvert { get; }Property value
Methods
| Name | Description |
|---|---|
| CreateConverter(Type, CsvSerializerOptions) | Creates a converter for the specified type. |
CreateConverter(Type, CsvSerializerOptions)
Creates a converter for the specified type.
public abstract CsvConverter? CreateConverter(Type typeToConvert, CsvSerializerOptions options)Parameters
typeToConvertType- The type of the values, for which
CsvConverter.CanConvertreturnedtrue. optionsCsvSerializerOptions- The options of the serializer.
Returns
CsvConverter? A CsvConverter<T> for typeToConvert.