Kumar
Kumar

Reputation: 11369

Static INotifyPropertyChanged generator for POCO's

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

Answers (2)

Gael Fraiteur
Gael Fraiteur

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

brunnerh
brunnerh

Reputation: 185385

Notify Property Waever

Injects INotifyPropertyChanged code into properties at compile time.

Upvotes: 6

Related Questions