Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

using directive

A line that lets you use a namespace's types without typing its full name.

A using directive (using System.Text;) imports a namespace's types into scope; global and implicit usings apply one to every file in a project.

Examples

  • using System.Text; at the top of a file lets you write StringBuilder instead of System.Text.StringBuilder.

See also

Read the full section →