Conversion Delegate

Represents a delegate for a type conversion. A conversion can be registered by the RegisterConversion extension method.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public delegate Object? Conversion(
	Object obj,
	Type targetType,
	CultureInfo? culture
)

Parameters

obj  Object
The source object to convert.
targetType  Type
The desired type of the result.
culture  CultureInfo
The used culture for the conversion. If , then the conversion must use culture invariant conversion.

Return Value

Object
The result instance of the conversion.

See Also