我有一个c#类。
class MyClass: AnotherClass, INotifyDataErrorInfo
{
..................
}我也需要实现"INotifyDataErrorInfo“接口。但是它是红色的,并且不标识接口的命名空间。我也添加了“使用System.ComponentModel;”。但它不起作用。
有人知道为什么吗?

发布于 2015-10-01 13:18:53
INotifyDataErrorInfo位于程序集System的命名空间System.ComponentModel中。确保源代码中包含using System.ComponentModel;,并且项目(.csproj)引用了System.dll。
https://stackoverflow.com/questions/32879719
复制相似问题