Delegates Part 1 Plugin Methods With Delegates
Delegates Part 1 Delegates Part 2 This post is just to get familiar with Delegates in C#, in the next posts I will talk about delegates in advance. What is Delegate A delegate is an object that knows how to call a method. {: .prompt-tip } You know variables in C#, right? A delegate is a reference type variable that holds the reference to a method and the reference can be changed at runtime. Delegates are usually used for implementing events and the call-back methods (We will get back to this soon). Before getting started, let’s see the syntax of a delegate: ...