ISerializerSurrogateHandler Interface

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

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public interface ISerializerSurrogateHandler

Methods

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.
GetObjectToSerialize When deserializing, handle the deserialized object. If type changes, transform obj to the original type.

See Also