我在Silverlight中的一个项目上工作,我想知道ObservableCollection是如何工作的。我很惊讶地看到这在反射器:2反射代码中具有相同名称的事件?
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个事件具有相同的名称和类型?这是怎么回事?这是Reflector中的错误吗?