Raising events vs direct method calls differences

Posted by dotnetdev on Stack Overflow See other posts from Stack Overflow or by dotnetdev
Published on 2010-04-18T00:52:27Z Indexed on 2010/04/18 1:03 UTC
Read the original article Hit count: 180

Filed under:

Hi

Raising an event, will call its event handler. eg http://msdn.microsoft.com/en-us/library/aa645739%28VS.71%29.aspx

What is the difference between using the events mechanism and direct calls to other methods (eg if a condition is met in method A(), call B() )?

And what is the difference between consuming and raising events?

Thanks

© Stack Overflow or respective owner

Related posts about c#