raise an event of a class from a different class in c#
<p>I have class EventContainer.cs which contains an event say </p>

<p><code>public event EventHandler AfterSearch;</code></p>

<p>I have another class EventRaiser.cs. I want to raise (and not handle) the above said event from this class. The raised event will in turn call the handler of the event in the EventContainer class. Something like this (This is obviously not correct)</p>

<pre><code>EventContainer obj = new EventContainer(); 
RaiseEvent(obj.AfterSearch);
</code></pre>
