If I searched I will definitely get examples of showing what is a Delegate and Action.
I have read the basic books giving examples of delegate.
But what I want to know is their use in the real world. Please do not give Hello World example or the Animal class they are far too basic
For e.g. :
- What are the difference between them
- When to use a delegate or action
- When not to use a delegate or action
- When they can be an over kill
Actionis aDelegate. It is defined like this:You could create your own delegate types similarly to how you would create abstract methods; you write the signature but no implementation. You then create instances of these delegates by taking the reference of a method.