Delegates and Events In C#
<p>Delegates and Events in C# provide a way to define and execute callbacks using a publish-subscribe pattern. Using Delegates and Events is considered a best practice to uncouple our code. They offer security and type-safety. In this article, you will learn how to implement Delegates and Events through a sample video encoding example.</p>
<p>A <strong>Delegate</strong>, according to Microsoft, is:</p>
<p>A type that represents references to methods with a particular parameter list and return type. When you instantiate a delegate, you can associate its instance with any method with a compatible signature and return type. You can invoke (or call) the method through the delegate instance.</p>
<p>In other words, a Delegate is a type that references methods with specific signatures, similar to pointers in programming languages like C and C++.</p>
<p><a href="https://medium.com/@guilherme.pomp/delegates-and-events-in-c-e6aaa1dbeb2b">Read More</a></p>