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
Type | type |
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.