Chapter 15. C# events

I recommend that you read and understand Chapter 14 before proceeding.

Any modern programming language has an efficient event model, and C# is no exception. The concepts in C#'s event model are quite similar to Java 2's event delegation model: – we still have the event source, the event consumer, and the event object. However, unlike Java 2's event delegation model, C#'s model uses an event object which is a special type of C# delegate.

I will start by examining the generic event model, then zoom in to C# specifics. If you are familiar with events, jump to section 15.2.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.160.106