NetDataContractSerializer.SurrogateSelector Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets an object that assists the formatter when selecting a surrogate for serialization.

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

public ISurrogateSelector SurrogateSelector { get; set; }

Property Value

Type: System.Runtime.Serialization.ISurrogateSelector

An ISurrogateSelector for selecting a surrogate.

For more information about the IDataContractSurrogate, see Data Contract Surrogates.

.NET Framework
Available since 3.0
Return to top