The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DataContractSerializer::DataContractSurrogate Property
.NET Framework (current version)
Gets a surrogate type that can extend the serialization or deserialization process.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
public: property IDataContractSurrogate^ DataContractSurrogate { IDataContractSurrogate^ get(); }
Property Value
Type: System.Runtime.Serialization::IDataContractSurrogate^An implementation of the IDataContractSurrogate class.
The IDataContractSurrogate can be used to customize how instances of a type are serialized and deserialized. For example, it can be used to enable the serialization of legacy types that are not serializable, that is, types to which the DataContractAttribute attribute has not been applied.
.NET Framework
Available since 3.0
Available since 3.0
Show: