c0d3b34n c0d3b34n - 1 year ago 132
C# Question

Watch setting value of properties

is there a possibility to watch value changes of properties without calling PropertyChanged (System.ComponentModel) for every property in setter?

I tried watching my properties with Timer, but this has an unnecessary negative effect on Performance and is too slow (15ms for every run).

Answer Source

Based on your comment, what you need is automatically add INotifyPropertyChanged to classes. This can be achieve in a several ways.

Here is a partial list: Roslyn, Fody, Castle, PostSharp, Spring.Net etc.

To choose one, you need to define your requirements. If you want dynamic proxy\ AOP or to do it with IL weaving or you want to add it with code fix inside VS.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download