How to Resolve Arguments are not valid for System.ComponentModel.PropertyChangingEventHandler

梦想的初衷 提交于 2020-01-11 12:44:30

问题


I'm rewriting an ASP.NET MVC3 app in MVC5 which makes heavy use of Knockout and MVVM. The model classes are heavily laden with INotifyPropertyChanged and INotifyPropertyChanging functions.

While bringing the following statements into the MVC5 app, I'm receiving the build error in the subject line above:

public event PropertyChangingEventHandler PropertyChanging;
    public event PropertyChangedEventHandler PropertyChanged;

    protected virtual void SendPropertyChanging()
    {
        if (this.PropertyChanging == null)
            return;
        this.PropertyChanging((object)this, AFCity.emptyChangingEventArgs);
    }

What must be done to resolve the above error?

来源:https://stackoverflow.com/questions/27363213/how-to-resolve-arguments-are-not-valid-for-system-componentmodel-propertychangin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!