I'll admit it, I'm too lazy to look at the source code. Does anyone know?
+1
A:
Never mind, I found the answer at MSDN:
You can use the Unity container to generate instances of any object that has a public constructor (in other words, objects that you can create using the new operator), without registering a mapping for that type with the container. When you call the Resolve method and specify the default instance of a type that is not registered, the container simply calls the constructor for that type and returns the result.
Esteban Araya
2010-07-16 18:17:47
hey, steve! Answering your own questions? Are we trying to pad our own stats? ;)
Mark J Miller
2010-07-19 18:55:33
@Mark J Miller: Yeah, some day I'll beat Jon Skeet. :)
Esteban Araya
2010-07-20 02:28:33