Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using namespace

what is the difference between

using System;     

and

using namespace System;    

is it the same thing?

thanks

like image 898
lital maatuk Avatar asked Feb 05 '11 11:02

lital maatuk


1 Answers

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.

like image 107
Hans Passant Avatar answered Sep 19 '22 10:09

Hans Passant