# Scope

*noun*

say it: **“skohp”** **/skoʊp/**

The part of a C# program where a variable's name can be used: from its declaration to the closing brace of the block it was declared in.

## What is **Scope** in C#?

**Scope** — The part of a program where a name can be used.

## In a sentence

- “The print line failed because result's **scope** ended at the if's closing brace.”

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

Updated: November 18, 2026

## In other subjects

- [Scope in Java](https://www.ask-codey.com/glossary/scope-java)
- [Scope in JavaScript](https://www.ask-codey.com/glossary/scope-javascript)
- [Scope in PowerShell](https://www.ask-codey.com/glossary/scope-powershell)
- [Scope in Python](https://www.ask-codey.com/glossary/scope)

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