the difference between delegates and events

WonnisObit

New member
Joined
Sep 22, 2024
Messages
1
Programming Experience
Beginner
Delegates and events are powerful constructs in C# that allow for flexible and extensible code. While they serve different purposes, they can sometimes be used to achieve similar ends, leading to confusion about when to use one over the other.
What is the difference between delegates and events?
 
Sounds like an interview or homework question. What have you thought about and considered?
 
See:
 
Unless @WonnisObit is the same "Mariusz Postol" over at C# Corner, this looks to definitely be an interview question or a homework question. See exact same question at C# Corner:
 
Last edited:

Latest posts

Back
Top Bottom