Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ClassifyOptions AddTypeProcessor<TElement>(Type, IClassifyTypeProcessor<TElement>)

Declaration

public ClassifyOptions AddTypeProcessor<TElement>(
    Type type,
    IClassifyTypeProcessor<TElement> processor
)

Summary

Adds an instruction to Classify to run every object of type type through the specified IClassifyTypeProcessor<TElement> implementation before and after serializing or deserializing to/from a Classify format that uses TElement as its serialized form.

Generic type parameters

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

Parameters

Typetype The type of objects to run through the type processor.
IClassifyTypeProcessor<TElement>processor An implementation of IClassifyTypeProcessor<TElement> that defines the operations to perform before/after serialization/deserialization.

Returns

The same options object, allowing chaining.