Jul 26, 2010 at 1:39 PM



Is there a reason to remove those nice template methods like Resolve<T> in Unity 2.0? I understand all the functionality can still be used through Resolve(typeof(T)...) versions but the syntactic sugar was so cool! Why did you guys decide to drop it?




Jul 26, 2010 at 6:34 PM

They weren't removed, they were moved to extension methods to shorten the actual interface definition.

Add "using Microsoft.Practices.Unity;" to the top of your file and the overloads will be available.

Jul 27, 2010 at 12:32 PM

Awesome! Thanks for the quick answer!