← BYTES
C#·Starter·Ref: 22.1.9

What is the purpose of a using directive at the top of a C# file?

Have a question about this video? Mention reference 22.1.9 when you contact us.

a.To start a new thread
b.To import a namespace so its types can be referenced without full qualification
c.To declare a using statement for disposal
d.To define a compiler constant
A using directive brings a namespace's types into scope so you can write List<int> instead of System.Collections.Generic.List<int>.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES2219#C