Replies: 1 comment
-
I suggest that you write some tests to answer your questions. You can also check our tests for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My scenario (simplified):
The goal is to map from
MessageViewModel
toMessage
.EmailRecipients
andSmsRecipients
may contain items that are in fact the same reference.Recipient
implementsEquals
andGetHashCode
, whileRecipientViewModel
does not.The documentation says almost nothing about
PreserveReferences
.PreserveReferences()
on my mapping fromRecipientViewModel
toRecipient
, correct?PreserveReferences
usesGetHashCode
.Does this mean that true reference equality is preserved only if the source type does not implement
GetHashCode
?Beta Was this translation helpful? Give feedback.
All reactions