【发布时间】:2009-12-20 21:15:00
【问题描述】:
我在 Silverlight 中从事一个项目,我想知道 ObservableCollection 是如何工作的。在 Reflector 中看到这一点我很惊讶:
public class ObservableCollection<T> :
Collection<T>, INotifyCollectionChanged, INotifyPropertyChanged
{
// Fields
private bool _busy;
// Events
public event NotifyCollectionChangedEventHandler CollectionChanged;
protected event PropertyChangedEventHandler PropertyChanged;
event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged;
...
怎么会有两个同名同类型的事件呢?这是怎么回事?这是 Reflector 中的错误吗?
【问题讨论】:
标签: silverlight events reflector