Class DecoratedSerializer
Convenience class to decorate an existing serializer, usually used for construction.
Inheritance
System.Object
DecoratedSerializer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ExtendedXmlSerializer
Assembly: ExtendedXmlSerializer.dll
Syntax
public class DecoratedSerializer : ISerializer
Constructors
DecoratedSerializer(ISerializer)
Creates a new instance.
Declaration
public DecoratedSerializer(ISerializer serializer)
Parameters
|
ISerializer
serializer
The existing serializer to decorate. |
Methods
Deserialize(XmlReader)
Performs a read operation over the provided document source and resolves an object instance from it.
Declaration
public object Deserialize(XmlReader reader)
Parameters
|
System.Xml.XmlReader
reader
The reader that represents the document source. |
Returns
|
System.Object
The instance that is represented by the document. |
Implements
Serialize(XmlWriter, Object)
Performance a write operation with the provided object instance, and saves it to the destination, represented by the provided writer.
Declaration
public void Serialize(XmlWriter writer, object instance)
Parameters
|
System.Xml.XmlWriter
writer
The destination writer. |
|
System.Object
instance
The source instance. |