Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Interface: RT.Serialization.IClassifySubstitute<TTrue, TSubstitute>

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
FromSubstitute(TSubstitute instance)
  • Abstract
Converts a substitute instance, generated by declassifying, back to the “real” type.
TSubstitute
ToSubstitute(TTrue instance)
  • Abstract
Converts an instance of the “real” type to a substitute instance to be classified.