A delegate object is a special type of object that contains the details of a method rather than data delegates in .net are used for two purposes
a) Callback
b) Event Handling
whereas A callback is a reference to executable code, or a piece of executable code, that is passed as an argument to other code. This allows a lower-level software layer to call a subroutine (or function) defined in a higher-level layer.
basically Delegates specify a method to call and optionally an object to call the method on. They are used, among other things, to implement callbacks and event listeners. It encapsulates a reference of a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked.
I will suggest you to have a go though some excellent articles which will might help you to learn Delegate in Details
Link1-[
http://msdn.microsoft.com/en-us/magazine/cc301810.aspx ]
and a series of articles for Delegates
Link--[
http://www.dotnetscraps.com/dotnetscraps/post/Explaining-Delegates-in-C.aspx ]
Thanks
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Naga116, if this helps please login to Mark As Answer. | Alert Moderator