Show / Hide Table of Contents

Class DecoratedSerializer

Convenience class to decorate an existing serializer, usually used for construction.

Inheritance
System.Object
DecoratedSerializer
ConfiguredSerializer<T>
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
ISerializer.Deserialize(XmlReader)

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.

Implements
ISerializer.Serialize(XmlWriter, Object)

Extension Methods

ExtensionMethods.Return<T, TOut>(T, TOut)
ExtensionMethods.To<T>(Object)
ExtensionMethods.AsValid<T>(Object, String)
ExtensionMethodsForAttachedProperties.Get<TType, TValue>(TType, Property<TType, TValue>)
ExtensionMethodsForAttachedProperties.Set<TType, TValue>(TType, Property<TType, TValue>, TValue)
ExtensionMethodsForCoreSources.If<TParameter, TResult>(TResult, ISpecification<TParameter>)
ExtensionMethodsForCoreSources.Let<TSpecification, TInstance>(TInstance, ISpecification<TSpecification>, TInstance)
Back to top Generated by DocFX