SerializerSurrogateGetObjectToSerialize Method
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
Namespace: DHI.Mike1D.GenericAssembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
public Object GetObjectToSerialize(
Object obj,
Type targetType
)
- obj Object
- The object to substitute.
- targetType Type
- The Type that the substituted object should be assigned to - the surrogated type returned by the GetDataContractType method.
ObjectThe substituted object that will be serialized.