Skip to content

Init read-only properties when mapping with a non-readonly interface fixes #374#375

Merged
andrerav merged 1 commit intoMapsterMapper:masterfrom
andrei-traktatovich:feature/init-readonly-props-in-non-readonly-interface
Feb 20, 2022
Merged

Init read-only properties when mapping with a non-readonly interface fixes #374#375
andrerav merged 1 commit intoMapsterMapper:masterfrom
andrei-traktatovich:feature/init-readonly-props-in-non-readonly-interface

Conversation

@andrei-traktatovich
Copy link
Copy Markdown

@andrei-traktatovich andrei-traktatovich commented Sep 20, 2021

Enable source.Adapt<ITarget>() always to initialize all properties of the autogenerated class from source (including readonly ones) fixes #374

@andrei-traktatovich andrei-traktatovich changed the title Init read-only properties when mapping with a non-readonly interface Init read-only properties when mapping with a non-readonly interface fixes #374 Sep 20, 2021
@qihangnet
Copy link
Copy Markdown

@chaowlert I really need this feature, can you merge this PR? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non-unform mapping to get-only properties of a target interface

3 participants