Author: Benjamin Perkins

Generics

Benjamin Perkins C#

When we think about the word Generic outside of the programming world it simply means that the object is not tied to any specific kind. An example is a bank account. We may not know which bank it is associated too, if it is a checking or savings account, however we do know that we […]

Read More →

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 →