What is the difference between delegates and events in c#?
Answer Posted / 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 |
Post New Answer View All Answers