We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
namespace N { using System; using System.ComponentModel; using System.Runtime.CompilerServices; public class C : INotifyPropertyChanged { private string p; public event PropertyChangedEventHandler PropertyChanged; public string P { get => this.p; set { if (string.Equals(value, this.p, StringComparison.Ordinal)) { return; } this.p = value; this.OnPropertyChanged(); } } protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) { this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }
Above is not very nice as the expectation is that the property gets the assigned value. /cc @jnm2
The text was updated successfully, but these errors were encountered:
I agree; even if the notification is skipped, setting should not be skipped unless you can prove that there would be no way to observe the difference.
Sorry, something went wrong.
Ok, adding analyzer then, can always be disabled. Has chances of catching bugs.
No branches or pull requests
Above is not very nice as the expectation is that the property gets the assigned value. /cc @jnm2
The text was updated successfully, but these errors were encountered: