Tag: delegates

Example of Delegates in C#

Delegates in C# is simply a reference/pointer to a function . One of the typical usage of the delegates is the event handlers in .NET. Example of Delegates in C# Below is a sample code snippet demonstrating the usage of delegates to add and subtract 2 numbers.