Implement "loosely coupled events"

B

Bruce Wood

How is this different from the usual .NET event system?

If I understand you, you simply need to subscribe to events raised by a
class in a different assembly from the one containing the client (event
reciever) class. This you can do with normal .NET events. This gives
you compile-time event discovery and run-time subscription.

If you need late (run-time) event discovery and subscription, then you
can use Reflection to find events and subscribe to them that way.
However, this is useful only in a minority of cases.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top