FormatConversionCallbackT, TFormatType Delegate |
A delegate to convert a T from one format to another.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public delegate T FormatConversionCallback<T, TFormatType>(
T from,
TFormatType targetFormat
)
Public Delegate Function FormatConversionCallback(Of T, TFormatType) (
from As T,
targetFormat As TFormatType
) As T
generic<typename T, typename TFormatType>
public delegate T FormatConversionCallback(
T from,
TFormatType targetFormat
)
type FormatConversionCallback =
delegate of
from : 'T *
targetFormat : 'TFormatType -> 'T
Parameters
- from
- Type: T
The instance of T to convert.
- targetFormat
- Type: TFormatType
The TFormatType to convert to.
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:
T
An instance of
T equivalent to
from,
in the new
TFormatTypetargetFormat.
See Also