Click or drag to resize

IPropertyTypeConverterConvert Method

Parses the input value and converts into the wanted type

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
Object? Convert(
	Object? propertyValue,
	Type propertyType,
	string? format,
	IFormatProvider? formatProvider
)

Parameters

propertyValue
Type: SystemObject
Input Value
propertyType
Type: SystemType
Wanted Type
format
Type: SystemString
Format to use when parsing
formatProvider
Type: SystemIFormatProvider
Culture to use when parsing

Return Value

Type: Object
Output value with wanted type
See Also