Table of Contents

Class ConverterCreationExtensions

Namespace
FlameCsv.Converters
Assembly
FlameCsv.Core.dll

Provides extensions to create converters for the source generator.

[EditorBrowsable(EditorBrowsableState.Never)]
public static class ConverterCreationExtensions
Inheritance
object
ConverterCreationExtensions

Remarks

This API supports code produced by the FlameCsv source generator and is not intended to be used directly. Its compatibility is only guaranteed for the way generated code uses it; direct use from user code is not supported, and its behavior may change in a minor release.

Methods

CreateUtf16<TValue>(CsvOptions<char>)

Creates a UTF-16 converter for a type that implements ISpanParsable<TSelf> and ISpanFormattable.

[EditorBrowsable(EditorBrowsableState.Never)]
public static CsvConverter<char, TValue> CreateUtf16<TValue>(CsvOptions<char> options) where TValue : ISpanParsable<TValue>, ISpanFormattable

Parameters

options CsvOptions<char>

Returns

CsvConverter<char, TValue>

Type Parameters

TValue

CreateUtf8Formattable<TValue>(CsvOptions<byte>)

Creates a UTF-8 converter for a type that implements ISpanParsable<TSelf> and IUtf8SpanFormattable.

[EditorBrowsable(EditorBrowsableState.Never)]
public static CsvConverter<byte, TValue> CreateUtf8Formattable<TValue>(CsvOptions<byte> options) where TValue : ISpanParsable<TValue>, IUtf8SpanFormattable

Parameters

options CsvOptions<byte>

Returns

CsvConverter<byte, TValue>

Type Parameters

TValue

CreateUtf8Parsable<TValue>(CsvOptions<byte>)

Creates a UTF-8 converter for a type that implements IUtf8SpanParsable<TSelf> and ISpanFormattable.

[EditorBrowsable(EditorBrowsableState.Never)]
public static CsvConverter<byte, TValue> CreateUtf8Parsable<TValue>(CsvOptions<byte> options) where TValue : IUtf8SpanParsable<TValue>, ISpanFormattable

Parameters

options CsvOptions<byte>

Returns

CsvConverter<byte, TValue>

Type Parameters

TValue

CreateUtf8Transcoded<TValue>(CsvOptions<byte>)

Creates a UTF-8 converter for a type that implements ISpanParsable<TSelf> and ISpanFormattable.

[EditorBrowsable(EditorBrowsableState.Never)]
public static CsvConverter<byte, TValue> CreateUtf8Transcoded<TValue>(CsvOptions<byte> options) where TValue : ISpanParsable<TValue>, ISpanFormattable

Parameters

options CsvOptions<byte>

Returns

CsvConverter<byte, TValue>

Type Parameters

TValue

CreateUtf8<TValue>(CsvOptions<byte>)

Creates a UTF-8 converter for a type that implements IUtf8SpanParsable<TSelf> and IUtf8SpanFormattable.

[EditorBrowsable(EditorBrowsableState.Never)]
public static CsvConverter<byte, TValue> CreateUtf8<TValue>(CsvOptions<byte> options) where TValue : IUtf8SpanParsable<TValue>, IUtf8SpanFormattable

Parameters

options CsvOptions<byte>

Returns

CsvConverter<byte, TValue>

Type Parameters

TValue