Breaking changes.
- Refactor and improve
Copy
methods onDynamicObj
:ShallowCopyDynamicProperties
: Copies all dynamic properties to a newDynamicObj
instance without trying to prevent reference equality.ShallowCopyDynamicPropertiesTo
: Copies all dynamic properties to a targetDynamicObj
instance without trying to prevent reference equality.DeepCopyProperties
: Recursively deep copy aDynamicObj
instance (or derived class) with all (static and dynamic) properties. Reinstantiation - and therefore prevention of reference equality - is possible forDynamicObj
,array|list|ResizeArray<DynamicObj>
, and classes implementingSystem.Icloneable
DeepCopyPropertiesTo
: Recursively deep copies all (static and dynamic) properties to a targetDynamicObj
instance (or derived class). Reinstantiation - and therefore prevention of reference equality - is possible forDynamicObj
,array|list|ResizeArray<DynamicObj>
, and classes implementingSystem.Icloneable
Copy
method was therefore removed- Expose
CopyUtils
class that contains our generic deep copy attempt
Full release notes: https://github.com/CSBiology/DynamicObj/blob/main/RELEASE_NOTES.md
Full Changelog: 4.0.3...5.0.0