# Getter

A method that returns an object's stored value.

## What is **Getter** in C#?

**Getter** — A method that returns an object's stored value.

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

Level: Journeyman · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/journeyman)

Updated: September 27, 2026

## In other subjects

- [Getter in Java](https://www.ask-codey.com/glossary/getter)
- [Getter in JavaScript](https://www.ask-codey.com/glossary/getter-javascript)
- [Getter in OOP](https://www.ask-codey.com/glossary/getter-oop)

Source: https://www.ask-codey.com/glossary/getter-c-sharp
