How does Unity resolve types that have not been registered?

I admit it, I'm too lazy to look at the source code. Somebody knows?

+6
c # ioc-container
source share
1 answer

Nothing, I found the answer on MSDN :

You can use the Unity container to generate instances of any object with an open constructor (in other words, objects that can be created using the new operator) without registering a mapping for this type with the container. When you call the Resolve method and specify the default instance for a type that is not registered, the container simply calls the constructor for that type and returns the result.

+11
source share

All Articles