This is the archive page for .NET Junkie. Click to go to the frontpage of this site.

Adding Covariance and Contravariance to Simple Injector

A few weeks back I read this question on Stackoverflow. The question was about applying covariance / contravariance (or variance for short) to the Autofac dependency injection container. The question triggered me to think about variance support in Simple Injector. I was wondering whether special changes were needed to the core framework to allow this. However, it didn't take me long to realize that enabling variance is actually pretty easy for anyone using the Simple Injector. The prerequisites are a proper application design and .NET 4.0.

read more...

- filed under .NET General, C#, Dependency injection, Simple Injector - four comments / No trackbacks - §