5.0.0
Breaking changes.
- Refactor and improve
Copymethods onDynamicObj:ShallowCopyDynamicProperties: Copies all dynamic properties to a newDynamicObjinstance without trying to prevent reference equality.ShallowCopyDynamicPropertiesTo: Copies all dynamic properties to a targetDynamicObjinstance without trying to prevent reference equality.DeepCopyProperties: Recursively deep copy aDynamicObjinstance (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.IcloneableDeepCopyPropertiesTo: Recursively deep copies all (static and dynamic) properties to a targetDynamicObjinstance (or derived class). Reinstantiation - and therefore prevention of reference equality - is possible forDynamicObj,array|list|ResizeArray<DynamicObj>, and classes implementingSystem.Icloneable
Copymethod was therefore removed- Expose
CopyUtilsclass 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