C# Events (Part 2 - Add/Remove Accessors) - Advanced C# Tutorial (Part 4.2)

preview_player
Показать описание
In this video we create an example where a class contains multiple events. We use 'add' and 'remove' accessors to encapsulate the functionality that fires when a client either subscribes or unsubscribes to a particular event.

The EventHandlerList built-in C# collection is used for storing the relevant delegates associated with the relevant events.

Links
--------
If you’d like to make a donation to help support the channel, please click the link below,

Full playlist - C# for Beginners Course

Full playlist - Advanced C# Course

More Information about the EventHandlerList C# Built-in Class
----------------------------------------------------------------------------------------------------

GitHub
-----------

All music in this video was created by Gavin Lon
Рекомендации по теме
Комментарии
Автор

I have learned lot of knowledges about C# technique, Thank you so much

minhan
Автор

I really enjoyed this tutorial.
thank you.

rebinmod
Автор

Hi, is it possible to not use eventhandler list, and use implicit event (add and remove) methods? Then, we just use the event's name for adding and removing handlers. Like what we did in the previous videos about events.

cyruszl
Автор

Heyy can you upload a video to make good environment to write C# codes using visual studio Code
for making application

charlie_dai
Автор

Just realised that the part of removing an event is not being used or applied anywhere in the code... Only that you can remove it.

Cleax
Автор

Bro why are you adding bg music?? Its distracting.

ramnathshanbhag