C#C
C#2y ago
SplikZerys

Delegates

Learn delegates and I can't find any information about the following thing:

  1. Why when we declare an instance of delegate with its name in class we can't provide it with one more method outside of its declaration? But it works in method as we can see,
  2. Why we CAN add method in an instance of delegate during its declaration?
Screenshot and code itself

I want to completely understand why it is so
image.png
Was this page helpful?