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 : Implements ISurrogateSelector ' Public Constructors Public Sub New() ' Public Instance Methods Overridable Public Sub AddSurrogate(ByVal type As Type, ByVal context As StreamingContext, ByVal surrogate As ISerializationSurrogate) Overridable Public Sub ChainSelector( ByVal selector As ISurrogateSelector) Implements ISurrogateSelector.ChainSelector Overridable Public Function GetNextSelector( ) As ISurrogateSelector Implements ISurrogateSelector.GetNextSelector Overridable Public Function GetSurrogate( ByVal type As Type, ByVal context As StreamingContext, ByRef selector As ISurrogateSelector) As ISerializationSurrogate Implements ISurrogateSelector.GetSurrogate Overridable Public Sub RemoveSurrogate(ByVal type As Type, ByVal context As StreamingContext) End Class
Get VB.NET Core Classes 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.