Skip to content

a48a5c17 7661 1454 684d 4703f1e002be

Axel Kesseler edited this page Mar 1, 2023 · 1 revision

FormatterBase.GetConverted Method (Object, String)

This method converts provided parameter value into its string representation.

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

Syntax

C#

protected string GetConverted(
	Object value,
	string standard
)

Parameters

 

value
Type: System.Object
The value to be converted.
standard
Type: System.String
The value to be used as standard result.

Return Value

Type: String
The string representation of converted value.

Remarks

This method uses the type formatter extension for a value conversion. If the value conversion fails and value is not null then method ToString() is used. Otherwise value of standard is returned.

See Also

Reference

FormatterBase Class
GetConverted Overload
Plexdata.LogWriter.Internals.Formatters Namespace
TypeFormatterExtension.TryFormat(TValue)(TValue, IFormatProvider, String)

Clone this wiki locally