Hi,
Ques : what is the delegates in the c# language ?
What is the delegates ?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 3, 2012, 6:53 AM EST
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
Vineet Kumar SainiRank #257 · 9.8K reputationPosted Mar 3, 2012, 8:59 AM EST
-
-
-
-
-
-
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.