Skip to content

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. FirstName and firstName);
  • same name case-insensitive prefixed with _ (i.e. FirstName and _firstName);
  • only field read in the property getter (i.e. string FirstName { get => this.name; }).

Clone this wiki locally