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 |
Implements
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
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. |