What are Events in CSharp? DotNet C

Опубликовано: 27 Октябрь 2024
на канале: Tech Interview Questions
120
9

DotNet Interview Question 61 of 100:

What are Events in CSharp?


Answer: Events in CSharp provide a way for a class to notify other classes when something of interest occurs. The class that sends (or raises) the event is called the publisher and the classes that receive (or handle) the event are called subscribers.