Skip to content

8e08ccce f9a9 9671 f279 23e935da646b

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

JsonFormatter.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 the characters backslash, double quote, carriage return, line feed, form feed, backspace or tab. If this is the case then each of those control characters is escaped by a backslash. Additionally, each result string (except for null values) is surrounded by double quotes.  

  • If value is null the method returns a null string without double quotes.
  • If value contains the string null the method returns a null string without double quotes.
  • If value is empty or whitespace the method returns an empty string including double quotes.

See Also

Reference

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

Clone this wiki locally