One prime example is events.
Another is when you have to run more than one "function" when a specific
action happens.
Another is when you have a library that has to make a callback to the
calling application, but you do not know what the event name is at the time
you create the library.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:
http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
|
*************************************************
"Cirene" <ci****@nowhere.comwrote in message
news:ee**************@TK2MSFTNGP02.phx.gbl...
When would you choose to use a delegate rather than calling a function
directly? What's the advantages? Thanks...