Events and Delegates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone explain the differences between events and delegates. Thank you
 
Hi, dotnet

You might want to check
http://msdn.microsoft.com/library/d...bcn7/html/vaconeventsdelegatesinheritance.asp,
which is for VB.Net but nevertheless gives general description.

Delegate is like function pointer in Win32 and event is related declaration
of the field in the class, which can keep function pointer and allows to
invoke it when required. Basically this pair is required to strong-type
pointer fields and related calls.

HTH
Alex

dotnet said:
Can someone explain the differences between events and delegates. Thank
you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top