Using PreserveReferences() throws an error for mapping of source that is Value type #3871
BogdanGirnyk
started this conversation in
NA
Replies: 1 comment 3 replies
-
It doesn't make sense for value types, they are values, not references. |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I faced an issue when creating a map from Enum to some class using
.PreserveReferences()
.The expression throws an exception:
Looks like behavior is the same for any ValueType destination.
Is it expected or it is a bug?
Beta Was this translation helpful? Give feedback.
All reactions