C# Delegates, Function and Action
- Delegate: is an object that point to method
- Function: is a generic delegate class created in .NET that has return type
- Action: is a generic delegate class created in .NET that do not have return type
In application programming, we seldom use delegate as we rely on the predefined generic delegate class created in .NET library more often which they are – Function & Action. Function and Action are used as somesort of “method variable handle” that can be pass around. The only difference between Function and Action is the earlier come with return type while the later doesn’t.