我在 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;
...
它怎么会有 2 个具有相同名称和类型的事件?这是怎么回事?这是反射器中的错误吗?