Let's say I have this class (which is really for demonstration purposes):
class Person
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string IdNumber { get; set; }
// CheckPopulationRegistry() checks against the database if a person
// these exact properties (FirstName, LastName, IdNumber etc.) exists.
public bool IsRealPerson => CheckPopulationRegistry(this);
}
I want to be notified when IsRealPerson
is changed.
Usually, I would implement the INotifyPropertyChanged
interface, but then I'd need to create an OnIsRealPersonChanged()
method, and call it from the setter, which I do not have.
Ideas?