Can I use Roslyn for compile time code rewriting?

后端 未结 2 945
庸人自扰
庸人自扰 2020-12-03 08:17

For example I have

class Foo: INotifyPropertyChanged {
    public event PropertyChangedEventHandler PropertyChanged;
    public int Bar {get;set;}
}
<         


        
2条回答
  •  无人及你
    2020-12-03 08:48

    I don't think this is possible in the current CTP that has been released as the compiler is there as service but there is no such thing which allows you to plug into the compilation process as you can do in Nemerle.

提交回复
热议问题