Skip to content
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

Fix #1518 #1520

Merged
merged 2 commits into from
Jul 13, 2016
Merged

Fix #1518 #1520

merged 2 commits into from
Jul 13, 2016

Conversation

TylerCarlson1
Copy link
Member

Have to check for IDictionary<TKey,TValue> explicitly for instances that inherit dictionary but aren't generic. Before would get IEnumerable<KeyValuePair<TKey,TValue>>

{
return enumerableType.GetTypeInfo().ImplementedInterfaces.FirstOrDefault(t => t.Name == "IDictionary`2");
}
catch (AmbiguousMatchException)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That doesn't look good. There is an extension method somewhere ImplementsGenericInterface or smth.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public static Type GetDictionaryType(this Type type)

@jbogard jbogard added the Bug label Jul 13, 2016
@jbogard jbogard added this to the 5.1.0 milestone Jul 13, 2016
@jbogard jbogard merged commit 0fdc47c into AutoMapper:master Jul 13, 2016
@lock
Copy link

lock bot commented May 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants