标签: c# variables events
是否可以在C#(< = 4)中为变量分配事件(然后使用它)?
类似的东西:
public void WireEvent() { var controlEvent = ((INotifyPropertyChanged) _myControl).PropertyChanged; controlEvent += MyEventHandler; }