Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Delegates<br />
• Provide a very loosely coupled notification/callback mechanism<br />
• Class based references are tightly coupled<br />
• Interfaces are better but still have drawbacks<br />
– Must implement entire interface<br />
– May not be interested in all method notifications defined in the<br />
interface<br />
• Delegates are the smallest piece of an interface<br />
– A single method signature<br />
– Events are based on delegates<br />
– Can use delegates for asynchronous programming<br />
– Important aspect of .NET development to understand<br />
• Great article on delegates<br />
– http://www.sellsbrothers.com/writing/default.aspx?content=delegat<br />
es.htm<br />
64