title: What is the advantage of calling method through delegates over calling with the help of class object in c#
body: <pre><code>using System;
  namespace multicastdeligate
  {
      delegate void Del1(int s);
      class TestClass
      {
          static void number(int s)
          {
              System.Console.WriteLine("  Hello, {0}!", s);
          }
          static void Main()
          {
              Del1 x, y;
              x = number;
              y = number;
              System.Console.WriteLine("Invoking delegate x:");
              x(5);
              System.Console.WriteLine("Invoking delegate y:");
              y(5);
              System.Console.WriteLine("Invoking through method call:");
              number(5);
          }
      }
  }
  </code></pre>
  
  <p>I have called through normal function calling and delegates.</p>
  
  <p>what is the need to call function using delegate?</p>