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

Code Example 1

using System;

	public class CargoAircraft
      	// Create a delegate type (no return no arguments)
        public delegate void CheckQuantity();
		// Create an instance of the delegate type
        public CheckQuantity ProcessQuantity;

        public void ProcessRequirements()
          // Call the instance delegate
          // Will invoke all methods mapped

    public class CargoCounter
        public void CountQuantity() { }

    class Program
        static void Main(string[] args)
            CargoAircraft cargo = new CargoAircraft();
            CargoCounter cargoCounter = new CargoCounter();
          	// Map a method to the created delegate
            cargo.ProcessQuantity += cargoCounter.CountQuantity;
          	// Will call instance delegate invoking mapped methods

Code Example 2

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

// Create a method for a delgate.
public static void DelegateMethod(string message)

// Instatiate the delegate.
Del hadler = DelegateMethod;

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

// Output
// Hello World

Learn ReactJs, React Native from