Tags: C#

Anonymous Method / Delegate

Benjamin Perkins C#

Delegates in C# are similar to function pointers in C++ and allow methods to be passed as parameters. In this example we will create a delegate called CalculateCharge and a Withdrawal class: Our Program class will create 2 delegates to execute the calculation. The first delegate will be named and the second one will be […]

Read More →