KGy SOFT

Conversion Delegate

KGy SOFT Core Libraries Help
Represents a delegate for a type conversion. A conversion can be registered by the RegisterConversion extension method.

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public delegate Object Conversion(
	Object obj,
	Type targetType,
	CultureInfo culture
)

Parameters

obj
Type: SystemObject
The source object to convert.
targetType
Type: SystemType
The desired type of the result.
culture
Type: System.GlobalizationCultureInfo
The used culture for the conversion. If , then the conversion must use culture invariant conversion.

Return Value

Type: Object
The result instance of the conversion.
See Also

Reference