Interface
ITypeConverter<T>

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

object

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

object

The converted source object.

In this article
DefinitionMethodsConvert(object)ConvertBack(T)
Not finding the help you need?
Contact Support