Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ClassifyOptions AddTypeSubstitution<TTrue, TSubstitute>(IClassifySubstitute<TTrue, TSubstitute>)

Declaration

public ClassifyOptions AddTypeSubstitution<TTrue, TSubstitute>(
    IClassifySubstitute<TTrue, TSubstitute> substitutor
)

Summary

Adds a type substitution, instructing Classify to use a different type when serializing or deserializing a specific type.

Generic type parameters

TTrue The true type to be replaced by a substitute type.
TSubstitute The substitute type to use during serialization/deserialization instead of TTrue.

Parameters

IClassifySubstitute<TTrue, TSubstitute>substitutor An implementation of IClassifySubstitute<TTrue, TSubstitute> that defines the substitution.

Returns

The same options object, allowing chaining.