lital maatuk
lital maatuk

Reputation: 6239

using namespace

what is the difference between

using System;     

and

using namespace System;    

is it the same thing?

thanks

Upvotes: 6

Views: 3639

Answers (1)

Hans Passant
Hans Passant

Reputation: 941417

Yes, there's a difference. The first one doesn't compile. Maybe you meant this:

#using <System.dll>
using namespace System;

The #using directive allows you to reference an assembly without going through the Framework and References project setting.

Upvotes: 4

Related Questions