Skip to content

Exclude properties for comparing #1519

Answered by jnyrup
djordjedjukic asked this question in Q&A
Discussion options

You must be logged in to vote

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 and objectTwo are considered to be value types, e.g. if they override Equals(object).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@djordjedjukic
Comment options

@jnyrup
Comment options

Answer selected by jnyrup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants