Syntax
C# Using Directive Syntax
In C#, using directive: imports a namespace — using System.Text;
Quick Answer
- Syntax
using System.Text;
C#Syntax
Using Directive
Code example
using System.Text;
Imports a namespace.
How to using directive in C#
- Open your C# file or editor.
- Copy the example, then replace its sample names and values for your code.
C# Using Directive Syntax
Use using System.Text;.
Related Syntax References
Frequently asked questions
What is the C# syntax for using directive?
Use this pattern: using System.Text;
Can I copy this C# code example?
Yes. Use Copy code and adapt the example to your program.
Is this C# syntax different on Mac or Windows?
No. The language syntax is the same across operating systems.
Official source · How we verify