Hi, @15:58 after changing the name of delegate as EventHandler, dont we need to change the same in Finance.cs? Public void EmployeeSeparatedEventHandler() to public void EventHandler () ???
Please understand, you are not changing the name of the delegate, EventHandler it self is a delegate given by the .net framework. And "Public void EmployeeSeparatedEventHandler()" is a event handler method which you will be attaching to the delegate. Something like this employeeSeparator.EmployeeSeparated += EmployeeSeparatedEventHandler; Now whenever you invoke EmployeeSeparated event, EmployeeSeparatedEventHandler event handler will fire. Hope I understood your question.
sure, I hope at least the content of the video is clear. I hope you have gone through these videos on delegate: ruclips.net/video/4yo6HwpGafk/видео.html ruclips.net/video/ctoMRZnJ0DY/видео.html
I really appreciate you putting up this video, I have been looking for a simple and yet powerful explanation. This is where my search ended. 👍
Glad that you liked it!
very well explained. Thank you very much 💯
Thanks for the feedback!
Very understanding one, thanks for posting this.
Best ever explanation
Thanks for droping in the feedback☺
best video I have come across about events
Thanks for sharing the feedback :-)
Best and simple video
Thanks for sharing the feedback :-)
All the videos are wonderful..Very simple and easy to understand thanks a lot for those videos
awesome!! nicely explained. Thank you so much.
Glad that it helped you!
Very nice.
Nice video bro.. very simple example to make understand events everyone
Glad that you like it!
very well explained- keep up the good work buddy -it helps me a lot in understanding the concept
Thanks for sharing the feedback!
Hi,
@15:58 after changing the name of delegate as EventHandler, dont we need to change the same in Finance.cs?
Public void EmployeeSeparatedEventHandler()
to
public void EventHandler ()
???
Please understand, you are not changing the name of the delegate, EventHandler it self is a delegate given by the .net framework.
And "Public void EmployeeSeparatedEventHandler()" is a event handler method which you will be attaching to the delegate.
Something like this
employeeSeparator.EmployeeSeparated += EmployeeSeparatedEventHandler;
Now whenever you invoke EmployeeSeparated event, EmployeeSeparatedEventHandler event handler will fire.
Hope I understood your question.
Best Video sir
Thanks.
Very nice vedio sir ,thank you so much.
Thanks for sharing the feedback 🙂
Sir,
I would request to you please upload same kind of video.
Best video yet to learn exactly, where to use event & delegate.
sure, I hope at least the content of the video is clear.
I hope you have gone through these videos on delegate:
ruclips.net/video/4yo6HwpGafk/видео.html
ruclips.net/video/ctoMRZnJ0DY/видео.html
great
Very nice and clear! But it is better to make the method EmployeeSeperatedEventHandler private
Thanks for sharing the feedback!
Nice Video. where can i access this code?
Unfortunately, I did not maintained these code. But I think you can just follow along