将类添加到扩展另一个类的类

Dar*_*fer 0 c# events class

我需要在类上使用INotifyPropertyChanged接口.当底层属性更改时,需要更新表单中的值.

此类已派生自另一个未实现INotifyPropertyChanged接口的类.

这不起作用:

public class MyClass : BaseClass : INotifyPropertyChanged { }
Run Code Online (Sandbox Code Playgroud)

我很感激程序结构更改或语法更改的想法,这将使我在基类中的属性更改时实现更新表单的目标.

Kir*_*oll 6

public class MyClass : BaseClass, INotifyPropertyChanged { }
Run Code Online (Sandbox Code Playgroud)

(在基类之后添加逗号)