?
Solved

Do you have a couple of examples where I can understand the difference of events and delegates?

Posted on 2007-10-11
1
Medium Priority
?
204 Views
Last Modified: 2010-04-15
do you have an example that shows the differences between delegates (multicast) and  events.
Thanks
0
Comment
Question by:JuanLondono
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 150 total points
ID: 20058880
Delegates are similar to function pointers from C++ and C.  Delegates are an essential part of events, since they provide the sink for the event that traps when the event is raised.  Delegates define what the call looks like, without specifying what method to call.

Here is a good article on delegates and events:

Delegates and Events in C# / .NET
http://www.akadia.com/services/dotnet_delegates_and_events.html

Bob
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question