Fix nullability warnings in NotifyPropertyChangedBase
MODIFY
WalletWasabi/Bases/NotifyPropertyChangedBase.cs
WalletWasabi/Bases/NotifyPropertyChangedBase.cs
@@ -10,12 +10,12 @@ namespace WalletWasabi.Bases
public event PropertyChangedEventHandler? PropertyChanged;
- protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ protected void OnPropertyChanged([CallerMemberName] string? propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
- protected bool RaiseAndSetIfChanged<T>(ref T field, T value, [CallerMemberName] string propertyName = null)
+ protected bool RaiseAndSetIfChanged<T>(ref T field, T value, [CallerMemberName] string? propertyName = null)
{
if (EqualityComparer<T>.Default.Equals(field, value))
{

Fix nullability warnings in NotifyPropertyChangedBase