52104ba9 3970 7434 5d9b cea87cddccee - akesseler/Plexdata.CsvParser GitHub Wiki

CsvExporter(TInstance).WriteHead Method

This method tries to write the header information into given stream according to given parameter set.

Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

private static void WriteHead(
	StreamWriter writer,
	char separator,
	bool textual,
	IEnumerable<ItemDescriptor> settings
)

Parameters

 

writer
Type: System.IO.StreamWriter
The stream writer to be used to push data.
separator
Type: System.Char
The delimiter to be used to separate each column.
textual
Type: System.Boolean
The flag indicating how strings have to be handled. If true then all string are enclosed in double-quotes. If false then only the necessary strings are enclosed in double-quotes.
settings
Type: System.Collections.Generic.IEnumerable(ItemDescriptor)
A list of settings that describe the expected structure of the CSV file.

Remarks

The method writes either the predefined CSV column header or the name of the original property.

This method may throw exceptions which must be handled by the caller.

See Also

Reference

CsvExporter(TInstance) Class
Plexdata.CsvParser.Processors Namespace

⚠️ **GitHub.com Fallback** ⚠️