SerializerSurrogateFilePathGetObjectToSerialize Method |
During serialization, returns an object that substitutes the specified object.
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
)
Public Function GetObjectToSerialize (
obj As Object,
targetType As Type
) As Object
public:
virtual Object^ GetObjectToSerialize(
Object^ obj,
Type^ targetType
) sealed
Parameters
- obj
- Type: SystemObject
The object to substitute. - targetType
- Type: SystemType
The Type that the substituted object should be assigned to.
Return Value
Type:
ObjectThe substituted object that will be serialized.
Implements
ISerializationSurrogateProviderGetObjectToSerialize(Object, Type)See Also