all groups > dotnet faqs > january 2004 >
You're in the

dotnet faqs

group:

Differnece between Events and Delegates


Re: Differnece between Events and Delegates Daniel O'Connell
1/26/2004 6:00:53 AM
dotnet faqs:
There isn't much. A delegate is a wrapper around a method call, an event is
basically a special property that contains a delegate with protection
provided by the language. Events are accessed through a set of property
methods(public add_EventName(Delegate d), public remove_EventName(Delegate
d), and sometimes a protected raise_EventName(not sure of the sig, think its
just EventArgs e)) which allows you to ensure that callers outside of your
class don't raise the event or don't clear all the event listeners for
example, while still allowing them to add and remove their own handlers.
[quoted text, click to view]

Differnece between Events and Delegates Gopal Prabhakaran
1/26/2004 12:05:28 PM
Dear Guys

Pls tell me the difference between Events and Delegates..

Thanx
Gopal Prabhakaran

Re: Differnece between Events and Delegates Gaurav Khanna [C# MVP]
1/28/2004 10:43:44 AM
Hi!

These should help you:

http://msdn.microsoft.com/library/en-us/csref/html/vcwlkdelegatestutorial.asp
http://msdn.microsoft.com/library/en-us/csref/html/vcwlkEventsTutorial.asp
http://www.devmail.net/help/devmail.usingevents.html

--
Regards,
Kumar Gaurav Khanna
-----------------------------------------------------------------
Microsoft MVP - C#/.NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/
Bangalore .NET Users' Group
http://groups.msn.com/bdotnet/
[quoted text, click to view]

AddThis Social Bookmark Button