简体   繁体   English

C#-无法实现“ INotifyDataErrorInfo”

[英]C# - Being unable to implement “INotifyDataErrorInfo”

I have ac# class. 我有ac#课。

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

I need to implement "INotifyDataErrorInfo" interface too. 我也需要实现“ INotifyDataErrorInfo”接口。 But it comes in Red Colour and does not identify the namespace of the interface. 但是它以红色显示,不能识别接口的名称空间。 I have added "using System.ComponentModel;" 我添加了“使用System.ComponentModel;”。 too. 太。 But it does not work. 但这行不通。

anyone knows why it is ? 有人知道为什么吗?

在此处输入图片说明

INotifyDataErrorInfo is in the namespace System.ComponentModel in the assembly System . INotifyDataErrorInfo在程序集System的名称空间System.ComponentModel中。 Make sure you have using System.ComponentModel; 确保已using System.ComponentModel; in your source code and the Project (.csproj) references the System.dll . 在源代码中,项目(.csproj)引用System.dll

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM