Click or drag to resize

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.2.419.0 (24.2.419.0)
Syntax
public delegate bool TryFormatConversionCallback<T, TFormatType>(
	T from,
	TFormatType targetFormat,
	out T result
)

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