Duplicates val using softdeserialization, avoiding deep cloning.
This is safer than a normal shallow copy, as it ensures that the new value has a totally new instance.
The value to be duplicated.
Clone of val.
See Implementation
Duplicates val using softdeserialization, avoiding deep cloning.
This is safer than a normal shallow copy, as it ensures that the new value has a totally new instance.