如下为反编译后的代码
public event EventHandler PageCountChanged
{
[MethodImpl(MethodImplOptions.Synchronized)]
add
{
this.PageCountChanged = (EventHandler)Delegate.Combine(this.PageCountChanged, value);
}
[MethodImpl(MethodImplOptions.Synchronized)]
remove
{
this.PageCountChanged = (EventHandler)Delegate.Remove(this.PageCountChanged, value);
}
}
实际上只是声明了一个事件,只取第一行就好了
public event EventHandler PageCountChanged;
|