我有 ac# 类。
class MyClass: AnotherClass, INotifyDataErrorInfo
{
..................
}
我也需要实现“INotifyDataErrorInfo”接口。但它是红色的,并且不识别接口的命名空间。我添加了“使用 System.ComponentModel;” 也。但它不起作用。
有人知道为什么吗?
我有 ac# 类。
class MyClass: AnotherClass, INotifyDataErrorInfo
{
..................
}
我也需要实现“INotifyDataErrorInfo”接口。但它是红色的,并且不识别接口的命名空间。我添加了“使用 System.ComponentModel;” 也。但它不起作用。
有人知道为什么吗?
INotifyDataErrorInfoSystem.ComponentModel
位于程序集的命名空间中System
。确保您using System.ComponentModel;
的源代码中有并且项目 (.csproj) 引用了System.dll
.