471,618 Members | 1,186 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

Implement "loosely coupled events"

Hi
I need implement loosely coupled events to raise events in a Classibrary
project from one Windows Application project, and hanlde these from other
Windows Application project.
I found this article in MSDN, but I don't know how to implement.
http://msdn.microsoft.com/library/de...pledevents.asp

Thanks :)
Jan 5 '06 #1
2 2002
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.

Jan 5 '06 #2
KJ
May I suggest you start here:

http://msdn.microsoft.com/library/de...Components.asp

Jan 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Robert Inder | last post: by
3 posts views Thread by Anil Gupte | last post: by
6 posts views Thread by Smithers | last post: by
1 post views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.