例えば、私はRoslynを使用してコンパイルタイムコードを書き換えることはできますか?
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"));
}
}
}
に、コンパイル時に、バーを書き直すことができます。
FYIこれは今日このhttps://github.com/SimonCropp/Fody – Simon
で実行できます。コードの場所が移動されました。 [github.com/Fody/Fody](http://github.com/Fody/Fody) – JKor