IDataContractSurrogate Members
.NET Framework 3.5
Provides the methods needed to substitute one type for another by the DataContractSerializer during serialization, deserialization, and export and import of XML schema documents (XSD).
The IDataContractSurrogate type exposes the following members.
| Name | Description | |
|---|---|---|
|
GetCustomDataToExport | Overloaded. During schema export operations, inserts annotations into the schema for non-null return values. |
|
GetDataContractType | During serialization, deserialization, and schema import and export, returns a data contract type that substitutes the specified type. |
|
GetDeserializedObject | During deserialization, returns an object that is a substitute for the specified object. |
|
GetKnownCustomDataTypes | Sets the collection of known types to use for serialization and deserialization of the custom data objects. |
|
GetObjectToSerialize | During serialization, returns an object that substitutes the specified object. |
|
GetReferencedTypeOnImport | During schema import, returns the type referenced by the schema. |
|
ProcessImportedType | Processes the type that has been generated from the imported schema. |