Reputation: 11369
found this runtime INotifyPropertyChanged generator
http://www.codeproject.com/Articles/141732/Automatic-Implementation-of-INotifyPropertyChanged
wondering if there is a static generator to avoid the run time performance hit ?
Upvotes: 2
Views: 454
Reputation: 6857
PostSharp's INotifyPropertyChanged aspect injects the boilerplate at compile time using MSIL rewriting.
Metalama is a Roslyn extension that also allows to generate the INotifyPropertyChanged boilerplate. It does it by AST modification and you can debug the transformed code.
Upvotes: 0
Reputation: 185385
Injects INotifyPropertyChanged code into properties at compile time.
Upvotes: 6