Thursday, 11 January 2007

Explain the delegates in C#.

Delegates

in C# are objects which points towards a function which matches its signature. Delegates are reference type used to encapsulate a method with a specific signature. Delegates are similar to function pointers in C++; however, delegates are type-safe and secure.Here are some features of delegates:A delegate represents a class. A delegate is type-safe. We can use delegates both for static

No comments:

Post a Comment