Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Interface: RT.Serialization.IClassifyTypeProcessor<TElement>

Summary

Contains methods to process all objects of a specific type and/or their serialized forms before or after Classify serializes/deserializes them to/from a specific Classify format. To use this, create a type that implements this interface and then pass an instance of that type to ClassifyOptions.AddTypeProcessor<TElement>(Type, IClassifyTypeProcessor<TElement>).

Generic type parameters

TElement Type of the serialized form. For example, for an XML-based ClassifyFormat, this might be XElement.

Remarks

This interface has no effect when implemented by the object being serialized or deserialized. For that, use IClassifyObjectProcessor<TElement>.

Instance methods

void
AfterDeserialize(object obj, TElement element)
  • Abstract
Post-processes an object after Classify has restored it from serialized form. This method is automatically invoked by Classify and should not be called directly.
void
AfterSerialize(object obj, TElement element)
  • Abstract
Post-processes the serialization produced by Classify for this object. This method is automatically invoked by Classify and should not be called directly.
void
BeforeDeserialize(TElement element)
  • Abstract
Pre-processes a serialized form before Classify restores the object from it. This method is automatically invoked by Classify and should not be called directly.
void
BeforeSerialize(object obj)
  • Abstract
Pre-processes the object before Classify serializes it. This method is automatically invoked by Classify and should not be called directly.