Skip to content

Allow mapping of generic methods in expressions irrespective of the parameter #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2018

Conversation

BlaiseD
Copy link
Member

@BlaiseD BlaiseD commented Oct 3, 2018

Partial fix for issue #12

Now it's possible to map the following:

Expression<Func<OptionS>> exp = () => Activator.CreateInstance<OptionS>();
Expression<Func<OptionT>> expmapped = mapper.Map<Expression<Func<OptionS>>, Expression<Func<OptionT>>>(exp);

@BlaiseD BlaiseD requested a review from jbogard October 3, 2018 13:18
@BlaiseD
Copy link
Member Author

BlaiseD commented Oct 3, 2018

@jbogard - Does AutoMapper.Extensions.ExpressionMapping have a MyGet?

@BlaiseD
Copy link
Member Author

BlaiseD commented Oct 3, 2018

@jbogard - never mind - I see it

@BlaiseD BlaiseD merged commit a28b89b into AutoMapper:master Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant