Class
SerializationConverter

Provides an abstract base class for XML serialization converters that handle type conversion during serialization and deserialization.

Definition

Namespace:Telerik.WinControls.XmlSerialization

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public abstract class SerializationConverter

Inheritance: objectSerializationConverter

Constructors

SerializationConverter()

Declaration

cs-api-definition
protected SerializationConverter()

Methods

ConvertFromString(object, PropertyDescriptor, string)

When overridden in a derived class, converts the specified string value back to the property's native type during XML deserialization.

Declaration

cs-api-definition
public abstract object ConvertFromString(object propertyOwner, PropertyDescriptor property, string value)

Parameters

propertyOwner

object

The object that owns the property being converted.

property

PropertyDescriptor

The property descriptor for the property being converted.

value

string

The string value to convert back to the native property type.

Returns

object

The converted object value suitable for setting on the property.

ConvertToString(object, PropertyDescriptor, object)

When overridden in a derived class, converts the specified property value to its string representation for XML serialization.

Declaration

cs-api-definition
public abstract string ConvertToString(object propertyOwner, PropertyDescriptor property, object value)

Parameters

propertyOwner

object

The object that owns the property being converted.

property

PropertyDescriptor

The property descriptor for the property being converted.

value

object

The property value to convert to a string.

Returns

string

A string representation of the property value suitable for XML serialization.

GetActualPropertyType(object, PropertyDescriptor)

When overridden in a derived class, gets the actual type that should be used for the specified property during serialization.

Declaration

cs-api-definition
public abstract Type GetActualPropertyType(object propertyOwner, PropertyDescriptor property)

Parameters

propertyOwner

object

The object that owns the property.

property

PropertyDescriptor

The property descriptor for the property.

Returns

Type

The actual type to use for serialization, which may differ from the property's declared type.

GetRadProperty(object, PropertyDescriptor)

Gets the RadProperty associated with the specified property, if available.

Declaration

cs-api-definition
public virtual RadProperty GetRadProperty(object propertyOwner, PropertyDescriptor property)

Parameters

propertyOwner

object

The object that owns the property.

property

PropertyDescriptor

The property descriptor for the property.

Returns

RadProperty

The associated RadProperty, or null if not applicable.