Show / Hide Table of Contents

Class SerializationActivator

A generalized serialization interceptor base class for convenience.

Inheritance
System.Object
SerializationActivator
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.ExtensionModel.Instances
Assembly: ExtendedXmlSerializer.dll
Syntax
public abstract class SerializationActivator : ISerializationInterceptor, ISerializationInterceptor<object>

Methods

Activating(Type)

Returns the instance to activate during deserialization. If null is returned, the default internal infrastructure is used to activate the object.

Declaration
public abstract object Activating(Type instanceType)
Parameters
System.Type instanceType

The type to activate.

Returns
System.Object

An instance of the provided type to activate. If null, the default internal activation is used.

Implements
ISerializationInterceptor<T>.Activating(Type)

Deserialized(IFormatReader, Object)

Called after an object has been activated and properties have been assigned their values from deserialization.

Declaration
public virtual object Deserialized(IFormatReader reader, object instance)
Parameters
IFormatReader reader

The reader used to deserialize the provided instance

System.Object instance

Returns
System.Object

The actual instance deserialized.

Implements
ISerializationInterceptor<T>.Deserialized(IFormatReader, T)

Serializing(IFormatWriter, Object)

Called when an instance is being serialized.

Declaration
public virtual object Serializing(IFormatWriter writer, object instance)
Parameters
IFormatWriter writer

The writer performing the serialization.

System.Object instance

Returns
System.Object

The actual instance to serialize.

Implements
ISerializationInterceptor<T>.Serializing(IFormatWriter, T)

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