What is the difference between delegates and events in c#?
Answer / Nirmal Kishore Pandey
In C#, a delegate represents a method with a specific return type and parameters. An event, on the other hand, is a special kind of delegate that allows multiple methods (event handlers) to be added, removed or fired at runtime. Delegates can be used for many purposes beyond events, while events are built specifically around multicast functionality.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I enforce const correctness in c#?
What is managed or unmanaged code?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
What are delegate methods?
how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com
Can you describe iuknown interface in short?
What is a protected class in c#?
can we declare a variable by name "this" in a class? Please explain?
What do you mean by hashtable c#?
What does addressof operator do in background ?
What are delegates and why are they required?
Can two catch blocks be executed?
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)