-
Notifications
You must be signed in to change notification settings - Fork 0
8e08ccce f9a9 9671 f279 23e935da646b
Axel Kesseler edited this page Mar 1, 2023
·
18 revisions
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
C#
protected override string ToOutput(
string value,
char split
)
- value
- Type: System.String
The value to be converted. - split
- Type: System.Char
The split character to be appended.
Type: String
The converted value that is ready for output.
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.
JsonFormatter Class
ToOutput Overload
Plexdata.LogWriter.Internals.Formatters Namespace