unitycontainer/documentation

Resolving Types Registered as Interfaces with Non-Generic Overloads Method

Opened this issue · 0 comments

The example uses an interface called IService in the registration process, but the line of code that requests the instance of the object all of a sudden uses an interface called IMyService (demonstrated in code snipped below)

var instance = (IService)container.Resolve(typeof(IMyService));

This looks like a typo