Events Events are always implemented with delegates in C#. Publishing class defines a delegate, the subscribing class first creates a method that matches the delegate signature and then creates an instance of the delegate type encapsulating that method. Everytime an …
Tag: delegate
This topic is quite interesting for beginners too. You can often face the usage of delegates and of course: events. Delegates If you want to execute an action but you don’t know which method or object you’ll want to call …