public void Bar() { Foo foo = new Foo(); **foo.MyEvent += foo_MyEvent;** foo.FireEvent(); } void foo_MyEvent(object sender, EventArgs e) { (
It add's handler to an event. It means that method on the right side of the operator will be invoked when the event will be risen.