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:
public abstract class SerializationConverter
Inheritance: objectSerializationConverter
Constructors
protected SerializationConverter()
Methods
When overridden in a derived class, converts the specified string value back to the property's native type during XML deserialization.
public abstract object ConvertFromString(object propertyOwner, PropertyDescriptor property, string value)
The object that owns the property being converted.
propertyPropertyDescriptorThe property descriptor for the property being converted.
valuestringThe string value to convert back to the native property type.
Returns:The converted object value suitable for setting on the property.
When overridden in a derived class, converts the specified property value to its string representation for XML serialization.
public abstract string ConvertToString(object propertyOwner, PropertyDescriptor property, object value)
The object that owns the property being converted.
propertyPropertyDescriptorThe property descriptor for the property being converted.
valueobjectThe property value to convert to a string.
Returns:A string representation of the property value suitable for XML serialization.
When overridden in a derived class, gets the actual type that should be used for the specified property during serialization.
public abstract Type GetActualPropertyType(object propertyOwner, PropertyDescriptor property)
The object that owns the property.
propertyPropertyDescriptorThe property descriptor for the property.
Returns:The actual type to use for serialization, which may differ from the property's declared type.
Gets the RadProperty associated with the specified property, if available.
public virtual RadProperty GetRadProperty(object propertyOwner, PropertyDescriptor property)
The object that owns the property.
propertyPropertyDescriptorThe property descriptor for the property.
Returns:The associated RadProperty, or null if not applicable.