more verbose interface for IUnityContainer in Microsoft.Practices.Unity.Silverlight.dll

Apr 27, 2010 at 8:54 PM

Hi, I just downloaded V4 bits and noticed that the Unity stuff is in this new assembly and I can't do things like:


Instead I have

Container.RegisterType(typeof(...), typeof(...), ....)

Why the change? I think the first way is less verbose.

Apr 29, 2010 at 5:43 PM


This is because the generic methods for IUnityContainer were moved to extension methods, since there were too many methods on that interface. You can find a deeper explanation for that change in this post from the Unity forums.

I hope you find this helpful.

Guido Leandro Maliandi