Skip to content

More flexible type conversions while injections #2

@VitaliyMF

Description

@VitaliyMF

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions