What are the advantages of using delegates in c#?
Answer / Rajeev Kumar Sagar
"Delegates in C# provide several benefits: they allow for event handling, method pointers, and callbacks. They enable decoupling of classes by allowing one class to define a method signature, and another to provide the implementation at runtime. Delegates also help in asynchronous programming by making it easier to manage multiple tasks concurrently."n
| Is This Answer Correct ? | 0 Yes | 0 No |
What is action in c# 3.5?
What do you mean by thread safe in c#?
Explain how do you directly call a native function exported from a dll?
Explain the difference between event and a delegate in c#?
What is the extension of c# file?
What is difference between private, protected, and public in C#?
How many kinds of elements an array can have?
What is an Interface in C#?
1 Answers TryTechnicals Pvt Ltd,
What are c# collections?
In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?
What is append in c#?
What?s the top .NET class that everything is derived from?
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)