-
Notifications
You must be signed in to change notification settings - Fork 458
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
Dictionary with values of other components that are lists throws exceptions #574
Comments
I would consider the easy solution to be: |
@jonorossi I would very much appreciate your help with this issue |
Merge request #575 has a test and a fix for the issue for you to review @jonorossi |
Thanks for the pull request. Could you please include a full stack trace here where it throws the |
We've also got the property reference notation syntax (i.e. |
Here is the stack trace System.NotImplementedException : The method or operation is not implemented. |
@jonorossi I'd be happy if you could point out what you mean by parameter syntax parsing code. Another thing - if this fix gets in - when can I expect a new version I can use with this fix? |
Dictionaries don't work with value types of lists.
For example:
In this example - stringToListDictionary while crash.
Reason for crash is that GenericListConverter is not implementing PerformConversion(string value, Type targetType) - but only PerformConversion(IConfiguration configuration, Type targetType).
GenericDictionaryConverter.ConvertConfigurationToCollection function uses DefaultConversionManager that finds the right converter - and picks the first eligble one: GenericListConverter - and calls PerformConversion(string value, Type targetType).
Using custom converter won't help since it is inserted in a list after GenericListConverter = so it won't get there before the exception.
The text was updated successfully, but these errors were encountered: