We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Imagine, I have class
class A { public Dictionary<int, Decimal> Prop { get; set; } }
Such code will rise an error:
TypeAdapter.Adapt<A, A>(new A { Prop = new Dictionary<int, Decimal>{ { 1, 2m } }});
Looks like ConversionDictionary rule applied here and rises exception.
The text was updated successfully, but these errors were encountered:
Sorry for bug, I will fix this in this weekend. For now, could you please map manually?
TypeAdapterConfig<Dictionary<int, decimal>, Dictionary<int, decimal>>.NewConfig() .MapWith(dict => dict.ToDictionary(kvp => kvp.Key, kvp => kvp.Value));
Sorry, something went wrong.
c13c9b7
No branches or pull requests
Imagine, I have class
Such code will rise an error:
TypeAdapter.Adapt<A, A>(new A { Prop = new Dictionary<int, Decimal>{ { 1, 2m } }});
Looks like ConversionDictionary rule applied here and rises exception.
The text was updated successfully, but these errors were encountered: