New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public interface ITypeConverter<T>

Derived Classes: TypeConverterBase<T, S>

Methods

Converts a source object to the native type.

C#
T Convert(object sourceObject)
Parameters:sourceObjectobject

The source object to convert.

Returns:

T

The converted object of type T.

Converts a native object back to its source representation.

C#
object ConvertBack(T nativeObject)
Parameters:nativeObjectT

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