FormatConverterT, TFormatTypeConvert Method |
Converts the specified instance 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 T Convert(
TFormatType from,
TFormatType to,
T instance
)
Public Function Convert (
from As TFormatType,
to As TFormatType,
instance As T
) As T
public:
T Convert(
TFormatType from,
TFormatType to,
T instance
)
member Convert :
from : 'TFormatType *
to : 'TFormatType *
instance : 'T -> 'T
Parameters
- from
- Type: TFormatType
The source TFormatType. - to
- Type: TFormatType
The destination TFormatType. - instance
- Type: T
The instance of T to convert.
Return Value
Type:
T
An instance of
T equivalent to
from,
in the new
TFormatTypeto.
Exceptions Exception | Condition |
---|
ArgumentException |
Thrown when there is no conversion defined from from to
to.
|
See Also