motivation behind delegates
From: Flip ([remove_me)
Date: 01/27/05
- Next message: Jon Skeet [C# MVP]: "Re: motivation behind delegates"
- Previous message: Marina: "Re: Sharing data between applications"
- Next in thread: Jon Skeet [C# MVP]: "Re: motivation behind delegates"
- Reply: Jon Skeet [C# MVP]: "Re: motivation behind delegates"
- Reply: Andrew: "RE: motivation behind delegates"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 27 Jan 2005 15:51:12 -0500
I'm sorry for the newbie question, but I'm a bit confused. I'm reading
about Delegats in Jesse Liberty's C# Programming book and, well, I'm
confused as to the motivation behind delegates. On the surface, they look
exactly like using interfaces in java, so why have another construct to
confuse things?
I know they work "like function pointers" but the whole reason I went to
java was to avoid pointers! And before java, I used VB, so pointers are not
something advantageous to me. And I understand delegates are how .net does
event driven coding, but why can't interfaces be used to accomplish the
samething?
Thanks for any advice.
- Next message: Jon Skeet [C# MVP]: "Re: motivation behind delegates"
- Previous message: Marina: "Re: Sharing data between applications"
- Next in thread: Jon Skeet [C# MVP]: "Re: motivation behind delegates"
- Reply: Jon Skeet [C# MVP]: "Re: motivation behind delegates"
- Reply: Andrew: "RE: motivation behind delegates"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|