Backend line

Auto-Properties

get/set/init/required, backing fields, field keyword, traps

1 sections

Start: Auto-Implemented Properties

Mid-level 1

  1. Auto-Implemented PropertiesAn auto-implemented property (public string Name { get; set; }) is a property whose storage the compiler writes for you: a hidden private backing field (<Name>k__BackingField) plus get_Name / set_Name accessor methods. At runtime the…, not read