Property
noun
say it: “PROP-er-tee” /ˈprɒpərti/
A class member that looks like a field from outside but runs get and set code when it is read or changed.
What is Property in C#?
Property — A member that exposes a value through get and set accessors.
class Thermostat
{
public int Temperature
{
get;
set;
}
}
In a sentence
- “Price is a property that refuses negative values in its set.”
Level: Journeyman · More C# terms at this level
Updated