forked from Fody/PropertyChanged
-
Notifications
You must be signed in to change notification settings - Fork 0
Property to Field Mapping
Alexander Bondarev edited this page Jan 19, 2022
·
1 revision
There mapping between notified Property and it's backing field. It may be either auto-generated backing field for auto-properties or manually defined field.
In case of manual properties the mapped field will be discovered through fields declared on same type and having same type as the property matching one of following rules:
- same name case-insensitive (i.e.
FirstNameandfirstName); - same name case-insensitive prefixed with
_(i.e.FirstNameand_firstName); - only field read in the property getter (i.e.
string FirstName { get => this.name; }).