Replies: 1 comment
-
|
Mapperly does not support this scenario at the moment and currently we don't have plans to do so, unless there is enough user request. We try to keep the API surface limited. This helps us maintain the project more effectively and keeps usage simple. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I am in need of overloading methods using method parameters, such as:
public static partial A To(this Target source, A destination);
public static partial B To(this Target source, B destination);
Usage:
I've searched for a solution to this, but wasn't able to find anything.
My current solution takes the new object as a parameter, but basically creates it's own object inside the generated mapper - as expected.
I know there's update style, but it doesn't return the type i've passed down, thus forces me to create new line just to assign a new object to a variable.
Are there any ways to do the thing i want? Or is there a limitation?
Edit: I know that's a minor thing I want to avoid by creating an additional, short lived object, but i'm just curious :)
Beta Was this translation helpful? Give feedback.
All reactions