ConversionAttempt Delegate
Represents a delegate for a type conversion attempt. 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 bool ConversionAttempt(
Object obj,
Type targetType,
CultureInfo? culture,
out Object result
)
Public Delegate Function ConversionAttempt (
obj As Object,
targetType As Type,
culture As CultureInfo,
<OutAttribute> ByRef result As Object
) As Boolean
public delegate bool ConversionAttempt(
Object^ obj,
Type^ targetType,
CultureInfo^ culture,
[OutAttribute] Object^% result
)
type ConversionAttempt =
delegate of
obj : Object *
targetType : Type *
culture : CultureInfo *
result : Object byref -> bool
- obj Object
- The source object to convert.
- targetType Type
- The desired type of the result parameter if the return value is .
- culture CultureInfo
- The used culture for the conversion. If , then the conversion must use culture invariant conversion.
- result Object
- The result if the return value is .
Boolean if the conversion was successful; otherwise,
.