Table of Contents

Class CsvConverterFactory<T>

Namespace
FlameCsv
Assembly
FlameCsv.Core.dll

Creates instances of CsvConverterFactory<T>. By default, used to resolve converters for enum and Nullable<T>.

public abstract class CsvConverterFactory<T> : CsvConverter<T> where T : unmanaged, IBinaryInteger<T>

Type Parameters

T

Token type

Inheritance
CsvConverterFactory<T>
Inherited Members

Methods

Create(Type, CsvOptions<T>)

Creates an instance capable of converting values of the specified type.

[RequiresUnreferencedCode("This method may require reflection, runtime code generation, or types that cannot be statically analyzed. It may not work properly in native AOT applications, and is not supported by the source generator.")]
[RequiresDynamicCode("This method may require reflection, runtime code generation, or types that cannot be statically analyzed. It may not work properly in native AOT applications, and is not supported by the source generator.")]
public abstract CsvConverter<T> Create(Type type, CsvOptions<T> options)

Parameters

type Type

TValue of the returned CsvConverter<T, TValue>

options CsvOptions<T>

Current options instance

Returns

CsvConverter<T>

Converter instance, must be CsvConverter<T, TValue> where TValue is type.

Remarks

This method should only be called after CanConvert(Type) has returned true.