I swear I have seen this but cannot seem to remember where.
I have simple properties (with no custom backing variable) as follows:
public string CityName { get; set; }
When the property changes I want the OnPropertyChanged event to fire. I swear I have seen something like this
public long CityName {get; set { OnPropertyChanged(); } }
but I cannot seem to find any examples. Can you do what I am asking without having an independent backing variable? The difference in my question is I do not want to use a variable to hold the value of the property.