nidarshani fernando
nidarshani fernando

Reputation: 533

C# - Being unable to implement "INotifyDataErrorInfo"

I have a c# class.

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

I need to implement "INotifyDataErrorInfo" interface too. But it comes in Red Colour and does not identify the namespace of the interface. I have added "using System.ComponentModel;" too. But it does not work.

anyone knows why it is ?

enter image description here

Upvotes: 0

Views: 75

Answers (1)

Richard Schneider
Richard Schneider

Reputation: 35464

INotifyDataErrorInfo is in the namespace System.ComponentModel in the assembly System. Make sure you have using System.ComponentModel; in your source code and the Project (.csproj) references the System.dll.

Upvotes: 1

Related Questions