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
TToken type
- Inheritance
-
objectCsvConverter<T>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
typeTypeTValueof the returned CsvConverter<T, TValue>optionsCsvOptions<T>Current options instance
Returns
- CsvConverter<T>
Converter instance, must be CsvConverter<T, TValue> where
TValueistype.
Remarks
This method should only be called after CanConvert(Type) has returned true.