FormatConverterT, TFormatTypeRegisterConversion Method (TFormatType, TFormatType, FormatConversionCallbackT, TFormatType) | 
 
            Registers a conversion between formats.
            
 
    Namespace: 
   AGI.Foundation.Infrastructure
    Assembly:
   AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic void RegisterConversion(
	TFormatType from,
	TFormatType to,
	FormatConversionCallback<T, TFormatType> conversion
)
Public Sub RegisterConversion ( 
	from As TFormatType,
	to As TFormatType,
	conversion As FormatConversionCallback(Of T, TFormatType)
)
public:
void RegisterConversion(
	TFormatType from, 
	TFormatType to, 
	FormatConversionCallback<T, TFormatType>^ conversion
)
member RegisterConversion : 
        from : 'TFormatType * 
        to : 'TFormatType * 
        conversion : FormatConversionCallback<'T, 'TFormatType> -> unit 
Parameters
- from
 - Type: TFormatType
The source format. - to
 - Type: TFormatType
The destination format. - conversion
 - Type: AGI.Foundation.InfrastructureFormatConversionCallbackT, TFormatType
            A delegate referring to a function to convert from from to
            to.
             
Exceptions| Exception | Condition | 
|---|
| ArgumentException | 
            Thrown when registering a conversion between identical formats. The parameters
            from and to cannot be equal.
             | 
See Also