public void Bar() { Foo foo = new Foo(); **foo.MyEvent += foo_MyEvent;** foo.FireEvent(); } void foo_MyEvent(object sender,EventArgs e) { ((Foo)sender).MyEvent -= foo_MyEvent; }
嘿,我有点不熟悉事件,有人可以告诉我什么=运算符与事件?