Skip to content

216099e9 2b73 99ef ab17 c86f7b262315

Axel Kesseler edited this page Mar 1, 2023 · 18 revisions

CsvFormatter.ToOutput Method (String, Char)

This method converts a value into its output format.

Namespace: Plexdata.LogWriter.Internals.Formatters
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1

Syntax

C#

protected override string ToOutput(
	string value,
	char split
)

Parameters

 

value
Type: System.String
The value to be converted.
split
Type: System.Char
The split character to be appended.

Return Value

Type: String
The converted value that is ready for output.

Remarks

This method takes the value and checks if it includes at least one double quote character or one carriage return character or one line feed character or one of the provided split character. If this the case then the whole value is surrounded by double quotes. Additionally, each of the double quotes within the value are escaped according to the rules of RFC 4180.

See Also

Reference

CsvFormatter Class
ToOutput Overload
Plexdata.LogWriter.Internals.Formatters Namespace

Clone this wiki locally