# Assignment

*noun*

say it: **“uh-SYNE-ment”** **/əˈsaɪnmənt/**

Storing a value in a variable with the = sign.

## What is **Assignment** in C#?

**Assignment** — Storing a value in a variable with the = operator.

```csharp
class Game
{
    void UpdateScore()
    {
        int score = 10;
        score = score + 5;
    }
}
```

## In a sentence

- “The **assignment** score = score + 7; adds a touchdown to the score.”

Level: Novice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=1)

Updated: November 9, 2026

## In other subjects

- [Assignment in Java](https://www.ask-codey.com/glossary/assignment-java)
- [Assignment in JavaScript](https://www.ask-codey.com/glossary/assignment-javascript)
- [Assignment in Python](https://www.ask-codey.com/glossary/assignment)

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