我在这段代码中遇到了一些问题..有人帮助我
public event EventHandler CollectionChanged
{
[MethodImpl(MethodImplOptions.Synchronized)]
add
{
this.CollectionChanged = (EventHandler)Delegate.Combine(this.CollectionChanged, value);
}
[MethodImpl(MethodImplOptions.Synchronized)]
remove
{
this.CollectionChanged = (EventHandler)Delegate.Remove(this.CollectionChanged, value);
}
}
问候 沙瓦