Class Serializer
Serialization class.
Inherited Members
Namespace: Telerik.Windows.Persistence.Serialization
Assembly: Telerik.Windows.PersistenceFramework.dll
Syntax
public class Serializer : SerializationBase, ISerializer
Constructors
Serializer(PersistenceManager)
Initializes a new instance of the Serializer class.
Declaration
public Serializer(PersistenceManager manager)
Parameters
PersistenceManager
manager
The associated PersistenceManager instance. |
Methods
GeneratePropertyTree(Object, String, ReferenceValue, PropertyData, SerializationMetadataCollection, Boolean, Int32)
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
System.Object
objectToSerialize
The object to serialize. |
System.String
path
The path. |
ReferenceValue
parentValue
The parent value. |
PropertyData
parentPropData
The parent prop data. |
SerializationMetadataCollection
options
The options. |
System.Boolean
shouldValidateCriteria
If set to |
System.Int32
nestingDepth
The nesting depth. |
Returns
System.Collections.ObjectModel.Collection<PropertyData>
|
SaveProperty(PropertyInfo, String, Object, ReferenceValue, SerializationMetadataCollection, Boolean, Int32, 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
System.Reflection.PropertyInfo
property
The property. |
System.String
path
The path. |
System.Object
obj
The object. |
ReferenceValue
parentValue
The parent value. |
SerializationMetadataCollection
options
The options. |
System.Boolean
shouldValidateCriteria
If set to |
System.Int32
nestingDepth
The nesting depth. |
PropertyData
parentPropData
The parent prop data. |
MatchResult
parentMatchResult
The parent match result. |
Returns
PropertyData
|
Serialize(Object)
Serializes a specific object.
Declaration
public Stream Serialize(object obj)
Parameters
System.Object
obj
The object to serialize. |
Returns
System.IO.Stream
Returns a stream with the serialization data. |
Implements
Serialize(Object[])
Serializes the specified objects.
Declaration
public Stream Serialize(params object[] obj)
Parameters
System.Object[]
obj
The objects to be serialized. |
Returns
System.IO.Stream
Returns a stream with the serialization data. |