簡體   English   中英

C#-無法實現“ INotifyDataErrorInfo”

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

我有ac#課。

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

我也需要實現“ INotifyDataErrorInfo”接口。 但是它以紅色顯示,不能識別接口的名稱空間。 我添加了“使用System.ComponentModel;”。 太。 但這行不通。

有人知道為什么嗎?

在此處輸入圖片說明

INotifyDataErrorInfo在程序集System的名稱空間System.ComponentModel中。 確保已using System.ComponentModel; 在源代碼中,項目(.csproj)引用System.dll

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM