Closed SimonG96 closed 3 years ago
Allow resolving of an implementation that is registered with an interface.
Registration:
container.Register<TInterface, TImplementation>();
Resolve:
TImplementation impl = container.Resolve<TImplementation>();
Should this also work for dependency injected objects?
@theKBro: Yes, injected objects are resolved as well:
https://github.com/SimonG96/LightweightIocContainer/blob/34cdbc52df284aacc115b531bc9eb2966364a530/LightweightIocContainer/IocContainer.cs#L559-L560
Allow resolving of an implementation that is registered with an interface.
Registration:
Resolve: