0

我有 ac# 类。

  class MyClass: AnotherClass, INotifyDataErrorInfo
  {
           ..................             
  }

我也需要实现“INotifyDataErrorInfo”接口。但它是红色的,并且不识别接口的命名空间。我添加了“使用 System.ComponentModel;” 也。但它不起作用。

有人知道为什么吗?

在此处输入图像描述

4

1 回答 1

1

INotifyDataErrorInfoSystem.ComponentModel位于程序集的命名空间中System。确保您using System.ComponentModel;的源代码中有并且项目 (.csproj) 引用了System.dll.

于 2015-10-01T05:18:52.953 回答