Click or drag to resize

SerializerDoubleArrayHandlerGetObjectToSerialize Method

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

Parameters

obj
Type: SystemObject
Deserialized object - the object to substitute.
targetType
Type: SystemType
The Type that the substituted object should be assigned to.

Return Value

Type: Object
New/updated object replacing deserialized object. Null if not handled by this instance

Implements

ISerializerSurrogateHandlerGetObjectToSerialize(Object, Type)
See Also