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

Definition

Namespace:Telerik.Maui.Controls.Compatibility.Common.Android

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

C#
public class TypeRegister : TypeRegister<Object>

Inheritance: objectTypeRegister<Object>TypeRegister

Inherited Members TypeRegister<Object>.Register(Type, Type, ITypeConverter<Object>)TypeRegister<Object>.Register<O, N>()

Methods

When overridden in a derived class, gets the platform-specific representation of the object.

C#
protected override Object GetNativeObjectCore(object value)
Parameters:valueobject

The object to convert.

Returns:

Object

The platform-specific representation.

Overrides: TypeRegister<Object>.GetNativeObjectCore(object)

When overridden in a derived class, gets the platform-specific type for the specified type.

C#
protected override Type GetNativeTypeCore(Type type)
Parameters:typeType

The source type.

Returns:

Type

The platform-specific type.

Overrides: TypeRegister<Object>.GetNativeTypeCore(Type)

When overridden in a derived class, gets the object representation from the platform-specific value.

C#
protected override object GetObjectCore(Object value, Type clrType, object context)
Parameters:valueObject

The platform-specific value to convert.

clrTypeType

The CLR type to convert to.

contextobject

The conversion context.

Returns:

object

The converted object.

Overrides: TypeRegister<Object>.GetObjectCore(Object, Type, object)

When overridden in a derived class, gets a type converter for the specified types.

C#
protected override ITypeConverter<Object> GetTypeConverter(Type type, Type nativeType)
Parameters:typeType

The source type.

nativeTypeType

The target native type.

Returns:

ITypeConverter<Object>

A type converter for the specified types.

Overrides: TypeRegister<Object>.GetTypeConverter(Type, Type)