Skip to content

Mapping private and protected members. #529

Closed Answered by TimothyMakkison
myth384 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, thanks for your question. I think I saw the same video 😃

Unfortunately because mapperly doesn't use reflection in its generated code it cannot access or change private fields. Perhaps in the future this feature could be added, i.e. when [MapPrivateMembers] is enabled mapperly could generate expression trees to get and set inaccessible fields.

It's an interesting idea, free to make an issue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by myth384
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