Conversion Delegate
Represents a delegate for a type conversion. A conversion can be registered by the
RegisterConversion extension method.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public delegate Object? Conversion(
Object obj,
Type targetType,
CultureInfo? culture
)
Public Delegate Function Conversion (
obj As Object,
targetType As Type,
culture As CultureInfo
) As Object
public delegate Object^ Conversion(
Object^ obj,
Type^ targetType,
CultureInfo^ culture
)
type Conversion =
delegate of
obj : Object *
targetType : Type *
culture : CultureInfo -> Object
- 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.
ObjectThe result instance of the conversion.