You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The component may have a dependency type which is generally compatible with injected implementation but this conversion is not supported by default type converters. For example DictionaryDescriptor always constructs IDictionary<string,object> and if dependency type is IDictionary<string,string> there will be an injection error. It is possible to have type converter that handles that automatically and creates compatible implementation if possible.
In general, it makes sense to introduce some kind of ITypeConverter to allow app-specific extensions for the implicit type casts.
The text was updated successfully, but these errors were encountered:
The component may have a dependency type which is generally compatible with injected implementation but this conversion is not supported by default type converters. For example
DictionaryDescriptor
always constructsIDictionary<string,object>
and if dependency type isIDictionary<string,string>
there will be an injection error. It is possible to have type converter that handles that automatically and creates compatible implementation if possible.In general, it makes sense to introduce some kind of
ITypeConverter
to allow app-specific extensions for the implicit type casts.The text was updated successfully, but these errors were encountered: