
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: [sourcecode language=”csharp”] delegate decimal CalculateCharge(decimal withdrawal); class Withdrawal { public string AccountOwnerName; public decimal withdrawal; public decimal charge; public CalculateCharge calculation; } [/sourcecode] […]
Read More →