net-object-deep-copy icon indicating copy to clipboard operation
net-object-deep-copy copied to clipboard

Trying to clone objects containing type PropertyInfo cause stack overflow.

Open JoshWobbles opened this issue 8 years ago • 2 comments

Seems to have issues with type PropertyInfo. Is there any way to mark properties of this type as excluded or allowed to reference?

JoshWobbles avatar Jul 13 '17 12:07 JoshWobbles

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.

jpreece6 avatar Dec 11 '17 09:12 jpreece6