delegate

  • Thread starter Thread starter jack
  • Start date Start date
J

jack

Hi
im just a begginer for csharp

i was tryign to umsderstand delegate keywork but unable to uinderstad
it
i have tryed to example from the help file but could not get what is
this all about
please help me in understanding what is delegate all about

Awaiting for reply
 
Hi,

delegate is basically a general way to reference methods, which have same
signature as dictated by the delegate.

Delegates make it possible to pass methods as parameters, as well as they
generalize referencing the methods so that you can use events. For example,
if you have an event declared, it can enforce that the event handler method
has certain signature, and it can use delegates for this.

Did you try this tutorial?

delegates tutorial (C# Programmer's Reference)
http://msdn.microsoft.com/library/d...y/en-us/csref/html/vcwlkdelegatestutorial.asp
 
Back
Top