Class SerializationConverter
Provides an abstract base class for XML serialization converters that handle type conversion during serialization and deserialization.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.XmlSerialization
Assembly: Telerik.WinControls.dll
Syntax
public abstract class SerializationConverter
Constructors
SerializationConverter()
Declaration
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
public abstract object ConvertFromString(object propertyOwner, PropertyDescriptor property, string value)
Parameters
System.Object
propertyOwner
The object that owns the property being converted. |
System.ComponentModel.PropertyDescriptor
property
The property descriptor for the property being converted. |
System.String
value
The string value to convert back to the native property type. |
Returns
System.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
public abstract string ConvertToString(object propertyOwner, PropertyDescriptor property, object value)
Parameters
System.Object
propertyOwner
The object that owns the property being converted. |
System.ComponentModel.PropertyDescriptor
property
The property descriptor for the property being converted. |
System.Object
value
The property value to convert to a string. |
Returns
System.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
public abstract Type GetActualPropertyType(object propertyOwner, PropertyDescriptor property)
Parameters
System.Object
propertyOwner
The object that owns the property. |
System.ComponentModel.PropertyDescriptor
property
The property descriptor for the property. |
Returns
System.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
public virtual RadProperty GetRadProperty(object propertyOwner, PropertyDescriptor property)
Parameters
System.Object
propertyOwner
The object that owns the property. |
System.ComponentModel.PropertyDescriptor
property
The property descriptor for the property. |
Returns
RadProperty
The associated RadProperty, or |