Click or drag to resize

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.3.420.0 (24.3.420.0)
Syntax
public T Convert(
	TFormatType from,
	TFormatType to,
	T instance
)

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
ExceptionCondition
ArgumentException Thrown when there is no conversion defined from from to to.
See Also