Tuesday 3 July 2012

How to avoid "is never used" ReSharper warning when class is used in IoC container?

Those of us who use ReSharper and some IoC container, must be familiar with the situation. You write a class, then register it in your container and everything works fine. However, ReSharper marks the class as "is never instantiated" or "is never used". Here a new plugin from Igal Tabachnik comes to our help. It's called Agent Multer and here a short video on how it works.

At the time of writing these lines, the plugin support Ninject, Windsor, Unity and Autofac containers. More details at: http://hmemcpy.github.com/AgentMulder/

No comments: