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

Updated

In other subjects