I have the code pattern below repeated numerous times throughout my WPF application's view models. Is there any quick and easy way to reduce it, without resorting to aspect oriented programming or the like?
private string _scriptExecutionStage;
public string ScriptExecutionStage
{
get => _scriptExecutionStage;
set
{
if (value != _scriptExecutionStage)
{
_scriptExecutionStage = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("ScriptExecutionStage"));
}
}
}