Click or drag to resize

SerializerSurrogate Class

This class is used when serializing/deserializing, either to replace one (de)serialized type with another, or to setup relations that the (de)serializer can not itself setup.
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.GenericSerializerSurrogate

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class SerializerSurrogate : ISerializationSurrogateProvider

The SerializerSurrogate type exposes the following members.

Constructors
  NameDescription
Public methodSerializerSurrogate
Initializes a new instance of the SerializerSurrogate class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetDeserializedObject
The GetDeserializedObject method converts the surrogated type instance to the original type instance. It is required for deserialization. Return input object, if not handling type.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectToSerialize
The GetObjectToSerialize method converts the original type instance to the surrogated type instance. The method is required for serialization. Return input object, if not handling type
Public methodGetSurrogateType
During serialization, deserialization, and schema import and export, returns a data contract type that substitutes the specified type.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRegisterSurrogateHandler
Register a ISerializerSurrogateHandler to handle one specific type
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also