Having a hard time finding a current example on how to clone an object. Could you point me toward a relevant and currently example either in the KB or sample projects.
How to Clone an Object Example
Answers approved by DevExpress Support
Hi,
XAF already provides the Clone Object module for this task. If you wish to clone an object in your code, you can use our Cloner helper class as illustrated in the CloneObjectViewController.CustomCloneObject Event article. If the logic of this helper class does not completely meet your requirements, I suggest you check how this class is implemented in the C:\Program Files (x86)\DevExpress 19.1\Components\Sources\DevExpress.Persistent\DevExpress.Persistent.BaseImpl\Cloner.cs file and implement your class in a similar way.