Exclude properties for comparing #1519
-
I am trying to use exclude option, but it doesn't work for me. I would expect that code bellow returns that objects are equal if only
Is there some issue with this code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Do you have a complete example to share? My immediate guess though is that |
Beta Was this translation helpful? Give feedback.
Do you have a complete example to share?
The code seems fine, but there could be several reasons/explanations to why it doesn't work as expected.
My immediate guess though is that
objectOne
andobjectTwo
are considered to be value types, e.g. if they overrideEquals(object)
.