Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Using "using" in C#

Is it better to put the classes you're using with "using"  inside or outside your first "namespace"?  I have seen both, and I know both will compile, but is there a preference?  Thanks (from a C# neophyte).

Andrew Burton
Tuesday, January 13, 2004

ASking what's "better" implies "to whom". What's better for you, is whatever makes you happy. Technically, they're equivalent.

Brad Wilson (dotnetguy.techieswithcats.com)
Tuesday, January 13, 2004

Then let me rephrase my question: Does it make any difference to the compiler where you put it?

Andrew Burton
Tuesday, January 13, 2004

"Technically they're equivalent."  Finish ready the post, Andy.  *sigh*  Thank you.

Andrew Burton
Tuesday, January 13, 2004

*  Recent Topics

*  Fog Creek Home