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.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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