eln*_*gno 2 .net c# events visual-studio visual-studio-2013
在 Visual Studio 2013 中调试时,我想知道PropertyChanged实现Publisher.INotifyPropertyChanged
我研究了一下,发现这应该可以调用GetInvocationList()和计算返回数组中的元素。因此,我在代码中设置了一个断点,并尝试在“立即”窗口中的一个名为publisherof 类的对象上调用此断点:Publisher
publisher.PropertyChanged.GetInvocationList()
Run Code Online (Sandbox Code Playgroud)
但是,我收到此错误消息:
The event 'System.ComponentModel.INotifyPropertyChanged.PropertyChanged' can only appear on the left hand side of += or -=
Run Code Online (Sandbox Code Playgroud)
我所做的有什么问题吗?我怎样才能访问订阅者PropertyChanged?
| 归档时间: |
|
| 查看次数: |
1836 次 |
| 最近记录: |