Class CsvFieldWritingExtensions
Extensions for formatting values into CsvFieldWriter<T>
public static class CsvFieldWritingExtensions- Inheritance
- 
      objectCsvFieldWritingExtensions
Methods
FormatValue<T>(ref readonly CsvFieldWriter<byte>, T?, ReadOnlySpan<char>, IFormatProvider?)
Formats the value to the writer.
public static void FormatValue<T>(this ref readonly CsvFieldWriter<byte> writer, T? value, ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) where T : struct, ISpanFormattableParameters
- writerCsvFieldWriter<byte>
- The writer to write to. 
- valueT?
- The value to format. 
- formatReadOnlySpan<char>
- The format to use. 
- formatProviderIFormatProvider
- The format provider to use. 
Type Parameters
- T
Remarks
Does not write a trailing delimiter or newline.
Null values are not written, use WriteField<TValue>(CsvConverter<T, TValue>, TValue?) instead.
FormatValue<T>(ref readonly CsvFieldWriter<byte>, T, ReadOnlySpan<char>, IFormatProvider?)
Formats the value to the writer.
public static void FormatValue<T>(this ref readonly CsvFieldWriter<byte> writer, T value, ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) where T : ISpanFormattableParameters
- writerCsvFieldWriter<byte>
- The writer to write to. 
- valueT
- The value to format. 
- formatReadOnlySpan<char>
- The format to use. 
- formatProviderIFormatProvider
- The format provider to use. 
Type Parameters
- T
Remarks
Does not write a trailing delimiter or newline.
Null values are not written, use WriteField<TValue>(CsvConverter<T, TValue>, TValue?) instead.
FormatValue<T>(ref readonly CsvFieldWriter<char>, T?, ReadOnlySpan<char>, IFormatProvider?)
Formats the value to the writer.
public static void FormatValue<T>(this ref readonly CsvFieldWriter<char> writer, T? value, ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) where T : struct, ISpanFormattableParameters
- writerCsvFieldWriter<char>
- The writer to write to. 
- valueT?
- The value to format. 
- formatReadOnlySpan<char>
- The format to use. 
- formatProviderIFormatProvider
- The format provider to use. 
Type Parameters
- T
Remarks
Does not write a trailing delimiter or newline.
Null values are not written, use WriteField<TValue>(CsvConverter<T, TValue>, TValue?) instead.
FormatValue<T>(ref readonly CsvFieldWriter<char>, T, ReadOnlySpan<char>, IFormatProvider?)
Formats the value to the writer.
public static void FormatValue<T>(this ref readonly CsvFieldWriter<char> writer, T value, ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) where T : ISpanFormattableParameters
- writerCsvFieldWriter<char>
- The writer to write to. 
- valueT
- The value to format. 
- formatReadOnlySpan<char>
- The format to use. 
- formatProviderIFormatProvider
- The format provider to use. 
Type Parameters
- T
Remarks
Does not write a trailing delimiter or newline.
Null values are not written, use WriteField<TValue>(CsvConverter<T, TValue>, TValue?) instead.