私は自分自身を CSharp に慣れていないと考えています。コードの場合、この作品に遭遇しましたが、それが何をするのか理解できません。
EventHandler がデリゲートと等しい場所を見たことがありませんか? それは何をしますか?もちろん、以下は完全なコードの抜粋です。イベント ハンドラーをデリゲートと同一視するという一般的な概念を誰かが理解するのに十分であることを願っているからです。ありがとう。
public class xyz : ViewModelBase
{
protected EventHandler modelChanged = null;
public xyz ( int a, int b)
{
this.modelChanged =
delegate
{
// check for changes.
if (this.ChangesExist == false)
{
// set the flag
this.ChangesExist = true;
// append the title.
currentTitle += "*";
_changeTitle(currentTitle);
}
};
}
}