net-object-deep-copy
net-object-deep-copy copied to clipboard
Trying to clone objects containing type PropertyInfo cause stack overflow.
Seems to have issues with type PropertyInfo. Is there any way to mark properties of this type as excluded or allowed to reference?
Just had the same issue. I solved this issue by creating a custom exclusion attribute, then mark fields that need to be excluded. A check for the exclusion attribute would be added to the CopyFields method.
It can be done as in pull request “Added ability to opt out of a deep copy for select properties, fields... #16”