﻿{% if HasInheritance == false -%}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
{
    var handler = PropertyChanged;
    if (handler != null) 
        handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
{% endif -%}

﻿{% if HasInheritance == false -%}
public event System.ComponentModel.PropertyChangedEventHandler{% if GenerateNullableReferenceTypes %}?{% endif %} PropertyChanged;

protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string{% if GenerateNullableReferenceTypes %}?{% endif %} propertyName = null)
{
    var handler = PropertyChanged;
    if (handler != null) 
        handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
{% endif -%}
