ClassSerializer
Serialization class.
Definition
Namespace:Telerik.Windows.Persistence.Serialization
Assembly:Telerik.Windows.PersistenceFramework.dll
Syntax:
public class Serializer : SerializationBase, ISerializer
Inheritance: objectSerializationBaseSerializer
Derived Classes:
Implements:
Inherited Members
Constructors
Serializer(PersistenceManager)
Initializes a new instance of the Serializer class.
Declaration
public Serializer(PersistenceManager manager)
Parameters
manager
The associated PersistenceManager instance.
Methods
GeneratePropertyTree(object, string, ReferenceValue, PropertyData, SerializationMetadataCollection, bool, int)
Generates the property tree.
Declaration
protected virtual Collection<PropertyData> GeneratePropertyTree(object objectToSerialize, string path, ReferenceValue parentValue, PropertyData parentPropData, SerializationMetadataCollection options, bool shouldValidateCriteria, int nestingDepth)
Parameters
objectToSerialize
The object to serialize.
path
The path.
parentValue
The parent value.
parentPropData
The parent prop data.
options
SerializationMetadataCollection
The options.
shouldValidateCriteria
If set to true [should validate criteria].
nestingDepth
The nesting depth.
Returns
SaveProperty(PropertyInfo, string, object, ReferenceValue, SerializationMetadataCollection, bool, int, PropertyData, MatchResult)
Saves the property.
Declaration
protected virtual PropertyData SaveProperty(PropertyInfo property, string path, object obj, ReferenceValue parentValue, SerializationMetadataCollection options, bool shouldValidateCriteria, int nestingDepth, PropertyData parentPropData, MatchResult parentMatchResult)
Parameters
property
The property.
path
The path.
obj
The object.
parentValue
The parent value.
options
SerializationMetadataCollection
The options.
shouldValidateCriteria
If set to true [should validate criteria].
nestingDepth
The nesting depth.
parentPropData
The parent prop data.
parentMatchResult
The parent match result.
Returns
Serialize(object)
Serializes a specific object.
Serialize(params object[])
Serializes the specified objects.