class Foo: INotifyPropertyChanged {
public event PropertyChangedEventHandler PropertyChanged;
public int Bar {get;set;}
}
我能得到Foo類AST和重寫酒吧,在編譯的時候,要
public string Bar
{
get { return this.bar; }
set
{
if (value != this.bar)
{
this.phoneNumberValue = value;
PropertyChanged(this, new PropertyChangedEventArgs("Bar"));
}
}
}
。
僅供參考,您可以通過此https://github.com/SimonCropp/Fody – Simon
執行此操作該代碼的位置已移動。它現在在[github.com/Fody/Fody](http://github.com/Fody/Fody) – JKor