CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

Difference between events and delegates topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2007, 11:27 AM
coderzone's Avatar
Senior Member
 
Join Date: May 2007
Posts: 273
Thanks: 16
Thanked 12 Times in 12 Posts
coderzone is on a distinguished road
| More
Unhappy Difference between events and delegates

What is the difference between Delegates and events?
Reply With Quote
  #2  
Old 03-11-2008, 11:29 PM
Junior Member
 
Join Date: Mar 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Statement is on a distinguished road
| More
Re: Difference between events and delegates

There are a few differences between the two of them. I am not sure I get all the differences, but those I know of is that events can only be triggered by the class that owns the event. That is, you can't externally trigger an objects event directly. I am not sure, but I think also that events supports many callback handlers where a delegate only supports one. I might be wrong on this one
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 01:59 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board