The named method can be used to a when we're using versions of C# prior to 2.0. Version 2.0 introduced a new way to instantiate delegates. We will try to understand these methods in the upcoming sections. Version 3.0 of C# replaces anonymous methods with Lambda expressions, which are now widely used.
Instantiating a delegate
Initiating delegates using NamedMethod
Let's look at an example of NamedMethod so that we can understand how to initiate a delegate. This is the method that was used prior to C# 2.0:
delegate void MathDelegate(int i, double j);
public class Chapter5Samples
{
// Declare a delegate
public void NamedMethod()
{
Chapter5Samples m = new Chapter5Samples();
// Delegate instantiation using "...