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.

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 class SerializerSurrogate : ISerializationSurrogateProvider
Inheritance
Object    SerializerSurrogate
Implements
ISerializationSurrogateProvider

Constructors

SerializerSurrogateInitializes a new instance of the SerializerSurrogate class

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetDeserializedObject 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.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetObjectToSerialize 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
GetSurrogateType 
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RegisterSurrogateHandler Register a ISerializerSurrogateHandler to handle one specific type
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also