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.
Example of Function Delegates in C#
Below is a sample code snippet that demonstrates the function delegates or lambda expression in C# . Example of Function Delegates in C#
Finding Factorial of a Number using Function Delegates in C#
Below is a sample code snippet demonstrating the use of function delegates in C# to find the factorial of the number. How to find the factorial of a Number using Function Delegates in C# ?