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