title: Calling public event to trigger method in another class in C#
body: <p>I wanted to ask if this is Event possible in C#. I have not much worked with Events till now.</p>
  
  <p>Say I have a class A which subscribed to a FormClosing Event of a form:</p>
  
  <pre><code>public class A
  {
     private void f_FormClosed(object sender, FormClosedEventArgs e)
     {
       //Now here a public Event should be called
     }
  }
  </code></pre>
  
  <p>Now there I want a public Event to be called. Let's say now I have another class B which has a certain method.</p>
  
  <pre><code>public class B
  {
    public void DoSomething()
    {
    }
  }
  </code></pre>
  
  <p>Now what I want to do:</p>
  
  <p>A Form gets closed so class A is getting notified. There, a public Event gets triggered (which is somewhere in a public class). I want to subscribe my method in class B to this Event so it gets called when that happens. Is this possible? And how is the syntax? I haven't found something useful till now.</p>
  
  <p>Edit: I can't create an instance of class B directly from class A.</p>