title: How to pass a delegate to another class
body: <p>In my main class 'A' I have declared a function and delegate to call that function, I want to pass my delegate to another class 'B' but how will class B know what type the delegate is?</p>
  
  <p>class A</p>
  
  <pre><code>public delegate void SendInfo(string[] info);
  SendInfo sendInfo = new SendInfo(SendInformation); //I have a function SendInformation
  
  B b = new B();
  b.SetDelegate(sendInfo);
  </code></pre>
  
  <p>class B</p>
  
  <pre><code>public delegate void SendInfo(string[] info); //I know this is wrong but how will 
  SendInfo SendInformation;                     //this class know what SendInfo is?
  
  public void SetDelegate(SendInfo sendinfo)    //What type is this parameter?
  {
      sendinfo.GetType();
      SendInformation = sendinfo;
  }
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>Eamonn</p>