Thursday, October 28, 2004

Thursday, October 07, 2004

: "A delegate is a proxy for a method. Clients interact with the delegate and the delegate forwards the operation to the method it represents. The advantage of this indirect arrangement is that the client code is relatively independent of the target method. The client sees only the delegate and does not need to know much about the method the delegate represents. Delegates are used in many places throughout the .NET Framework Class Library. Classic examples are as callbacks in user interface programming and as the way to specify the work to be performed by a thread. "