Click or drag to resize

ISerializerSurrogateHandler Interface

Interface for classes that handles special behavior when (de)serializing a certain type.

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public interface ISerializerSurrogateHandler

The ISerializerSurrogateHandler type exposes the following members.

Methods
  NameDescription
Public methodGetDataContractType
During serialization, deserialization, and schema import and export, returns a data contract type that substitutes the specified type.
Public methodGetDeserializedObject
During deserialization, returns an object that is a substitute for the specified object.
Public methodGetObjectToSerialize
When deserializing, handle the deserialized object. If type changes, transform obj to the original type.
Top
See Also