TryFormatConversionCallbackT, TFormatType Delegate |
A delegate to try converting a T from one format to
another.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public delegate bool TryFormatConversionCallback<T, TFormatType>(
T from,
TFormatType targetFormat,
out T result
)
Public Delegate Function TryFormatConversionCallback(Of T, TFormatType) (
from As T,
targetFormat As TFormatType,
<OutAttribute> ByRef result As T
) As Boolean
generic<typename T, typename TFormatType>
public delegate bool TryFormatConversionCallback(
T from,
TFormatType targetFormat,
[OutAttribute] T% result
)
type TryFormatConversionCallback =
delegate of
from : 'T *
targetFormat : 'TFormatType *
result : 'T byref -> bool
Parameters
- from
- Type: T
The instance of T to convert.
- targetFormat
- Type: TFormatType
The TFormatType to convert to.
- result
- Type: T
On return,
the resulting instance of T equivalent to from, in the new
TFormatTypetargetFormat.
Type Parameters
- T
-
The type of object that this delegate converts the format of.
- TFormatType
-
The class of the format object itself. This can be a base class.
Return Value
Type:
Boolean if
from could be converted to the
requested
TFormatTypetargetFormat; otherwise
.
See Also