Check out example codes for "delegate function c#". It will help you in understanding the concepts better.

Code Example 1

// Create the Delgate method.
public delegate void Del(string message);

// Create a method for a delgate.
public static void DelegateMethod(string message)
{
  Console.WriteLine(message);
}

// Instatiate the delegate.
Del hadler = DelegateMethod;

// Call the delegate.
hadler("Hello World");

// Output
// Hello World

Learn ReactJs, React Native from akashmittal.com