What is a delegate? How can it works?
Answer / Lalit Mohan Gupta
A delegate in C# is a type that represents methods with a particular parameter list and return type. Delegates allow developers to create events, method pointers, and callback functions. When you invoke a delegate, it calls the associated method with the specified arguments. This allows for loose coupling between classes and can facilitate object-oriented programming concepts such as polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is anonymous methods in c#?
How to transpose multi-dimensional array?
Explain About disco and uddi
What namespaces are necessary to create a localized application?
Does c# supports destructors?
Can hashtable have duplicate keys?
What are bitwise logical operators?
What is nullable types in c#?
What is the difference between abstract class and interface in c#?
When should I throw an exception?
Is dll a library?
Explain constructor in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)