Summary
Defines how to substitute a type for another type during Classify serialization/deserialization. Pass an instance
of a type implementing this interface to
ClassifyOptions.AddTypeSubstitution<TTrue, TSubstitute>(IClassifySubstitute<TTrue, TSubstitute>) to
use the substitution throughout a serialization or deserialization, or use it in a
ClassifySubstituteAttribute to limit it to a specific field or automatically-implemented property.
Generic type parameters
TTrue |
The type that is actually used for instances in memory. |
TSubstitute |
The substitute type to be used for purposes of classifying and declassifying. |
Instance methods
TTrue | |
Converts a substitute instance, generated by declassifying, back to the “real” type. |
TSubstitute | |
Converts an instance of the “real” type to a substitute instance to be classified. |