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: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
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