Possible Duplicate:
Should Usings be inside or outside the namespace
Are there any technical reasons for preferring this
namespace Foo
{
using System;
using System.IO;
instead of the default
using System;
using System.IO;
namespace Foo
{
No technical reason, just a preference. of course the second chunk of code looks cleaner, though.
Eric Lippert explains this.
In general, they're identical.
However,
using
statements in the namespace can see namespaces and aliases included outside the namespace.Almost* the only difference between the two would be if you used more than one namespace in the same file (or if you used the same namespace more than once). I'm not sure why would you do that, bu you certainly can:
* See SLaks' answer.