我在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中的錯誤嗎?