Auto-Implemented Property

noun

say it: “AW-toh IM-pluh-men-tid PROP-er-tee” /ˈɔːtoʊ ˈɪmplɪmɛntɪd ˈprɒpərti/

A property written as { get; set; }, where C# creates the hidden field that stores its value.

What is Auto-Implemented Property in C#?

Auto-Implemented Property — A property whose hidden backing field is generated by the compiler.

class Thermostat
{
    public int Temperature
    {
        get;
        set;
    }
}

In a sentence

  • “Title is an auto-implemented property: public string Title { get; set; }.”

Level: Journeyman · More C# terms at this level

Updated