OCLOperators deepclone
(Created page with " object.deepclone(viewmodelname) returns a deepclone copy of the object - viewmodel decide copy depth Deep clone is a special case of Transform usin...")
 
No edit summary
Line 5: Line 5:


See [[OCLOperators transform|Transform]] for more information and use cases.
See [[OCLOperators transform|Transform]] for more information and use cases.
[[Category:OCLOperators]]

Revision as of 12:37, 7 December 2022

This page was created by Lars.olofsson@mdriven.net on 2019-02-16. Last edited by Stephanie@mdriven.net on 2025-02-13.
object.deepclone(viewmodelname) returns a deepclone copy of the object - viewmodel decide copy depth

Deep clone is a special case of Transform using the same class as both the source and the target.

For deepclone you don't need to provide a destination object. It always creates a new object of the same class as the source.

See Transform for more information and use cases.