Skip to content

Glossary: C# Beyond the Basics

top-level code

Also written: top-level statements, top-level await

Statements written directly in a file with no `Main` method, as in `Program.cs` or a file-based app. They can use `await` directly.

Where the book teaches it

Related terms

local functionasync