Name
SurrogateSelector
Synopsis
This class is the basic implementation of the
ISurrogateSelector
interface. A formatter uses
this class to find the appropriate surrogate object to serialize or
deserialize an object of a specific type, assembly, or context.
public class SurrogateSelector : ISurrogateSelector { // Public Constructors public method SurrogateSelector(); // Public Instance Methods public virtual method void AddSurrogate(Type type, StreamingContext context, ISerializationSurrogate surrogate); public virtual method void ChainSelector( // implements ISurrogateSelector ISurrogateSelector selector); public virtual method ISurrogateSelector GetNextSelector(); // implements ISurrogateSelector public virtual method ISerializationSurrogate GetSurrogate( // implements ISurrogateSelector Type type, StreamingContext context, out ISurrogateSelector selector); public virtual method void RemoveSurrogate(Type type, StreamingContext context); }
Get C# in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.