Formatter.SurrogateSelector Property

 

When overridden in a derived class, gets or sets the ISurrogateSelector used with the current formatter.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

public abstract ISurrogateSelector SurrogateSelector { get; set; }

Property Value

Type: System.Runtime.Serialization.ISurrogateSelector

The ISurrogateSelector used with the current formatter.

Use the SurrogateSelector to look up implementations of ISerializationSurrogate that control the serialization of a particular type.

If an object type has a matching surrogate, then serialization and deserialization are handed off to the surrogate even if the type implements the ISerializable interface.

Notes to Inheritors:

You must implement this property in a derived class.

.NET Framework
Available since 1.1
Return to top
Show: