I have a problem: imagine I have a plugin-based system.
I need some kind of interface with which I could catch events from every plugin, which implements for example IReporting interface.
(IReporting) object.OnSomeEvent += <.....>
But I can’t find a way to do that.
Instead of (IReporting)obj.XXX you should write ((IReporting)obj).XXX
Regarding plugin framework take a look at existing solutions with good architecture, for example MEF