InterfaceITypeConverter<T>
Interface
Defines a contract for converting between source objects and native objects of type T
.
Definition
Namespace:Telerik.Maui.Controls.Compatibility.Common
Assembly:Telerik.Maui.Controls.Compatibility.dll
Type Parameters:
T
The type of the native object.
Syntax:
cs-api-definition
public interface ITypeConverter<T>
Methods
Convert(object)
Converts a source object to the native type.
Declaration
cs-api-definition
T Convert(object sourceObject)
Parameters
sourceObject
The source object to convert.
Returns
T
The converted object of type T
.
ConvertBack(T)
Converts a native object back to its source representation.
Declaration
cs-api-definition
object ConvertBack(T nativeObject)
Parameters
nativeObject
T
The native object of type T
to convert back.
Returns
The converted source object.