Delegates Part 2
Delegates Part 1 Delegates Part 2 Prerequisits You want to read the second part of Delegates, right? The first thing that you need is to read the previous part (Part 1). The next thing is putting a smile please put a smile on your face then start to read the article. Target methods As you remember, we agreed that a delegate can point to a method, right? In simple words, it means that we can have a variable that can hold a method in it and then we can call that method by calling this variable. We have local, static, and instance methods in C#, so the delegate can point to which of them? All! A delegate’s target method can be a local, static, or instance method. ...