Hi,
Ques : what is the delegates in the c# language ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vineet Kumar SainiPosted Mar 3, 2012, 1:59 PM
-
-
-
-
-
-
For more information about delegate please visit http://msdn.microsoft.com/en-us/library/ms173171%28v=vs.80%29.aspxDelegates are similar to C++ function pointers, but are type safe.
Delegates allow methods to be passed as parameters.
Delegates can be used to define callback methods.
Delegates can be chained together; for example, multiple methods can be called on a single event.
Methods don't need to match the delegate signature exactly. For more information
C# version 2.0 introduces the concept of Anonymous Method which permit code blocks to be passed as parameters in place of a separately defined method.
Satyapriya NayakPosted Mar 3, 2012, 11:53 AM
A delegate defines a reference type that can be used to encapsulate a method with a specific signature. A delegate instance encapsulates a static or an instance method. Delegates are roughly similar to function pointers in C++; however, delegates are type-safe and secure.
Please refer Our recommended articles also
Thanks