question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parameter for disable INotifyPropertyChanged

See original GitHub issue

Sometime I need disable Fody on one class. Now I must use attribute [DoNotNotify], but is not good resolved, because I must use Fody attribute for disable it in this class.

My idea. For Fody add option parameter implement fody in every INotyfyPropertyChanged class.

When I need use Fody for INotyfyPropertyChanged, I use [PropertyChanged.ImplementPropertyChanged] class Person: INotyfyPropertyChanged {...}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:34 (17 by maintainers)

github_iconTop GitHub Comments

3reactions
0x53Acommented, May 29, 2017

There is already a way to move from opt-out to opt-in:

[assembly: PropertyChanged.FilterType("My.Specific.OptIn.Namespace.")]

I use this successfully in a legacy project to scope the rewriting to only one namespace.

3reactions
BarfieldMVcommented, Dec 6, 2016

It would be really handy if the ImplementPropertyChanged would be opt in even for classes implementing INotifyPropertyChanged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

INotifyPropertyChanged Disable Button and CheckBox
The PropertyChangedEventArgs constructor takes a string as a parameter, where the string is the name of the property that was updated. The name ......
Read more >
Parameter for disable INotifyPropertyChanged -
Sometime I need disable Fody on one class. Now I must use attribute [DoNotNotify] , but is not good resolved, because I must...
Read more >
INotifyPropertyChanged Support | ReSharper Documentation
The INotifyPropertyChanged interface is widely used in .NET applications to send notifications when a property has changed its value.
Read more >
Wpf MVVM, how to disable command based on error ...
I have a ValidatableBindableBase class that implements INotifyDataErrorInfo interface, and INotifyPropertyChanged interface. The validations ...
Read more >
Commanding - .NET MAUI
You can set the CommandParameter property to arbitrary data to distinguish between multiple buttons if they are all bound to the same ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found