Click or drag to resize

SerializerSurrogate Methods

The SerializerSurrogate type exposes the following members.

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