K
Keith Patrick
Can someone tell me the difference in terms of actual implications using:
namespace MyNamespace {
using System;
class MyClass {...}
}
vs.
using System;
namespace MyNamespace {
class MyClass {...}
}
are? There's a framework recommendation that the former be used (and some
ASP.Net templates create classes like this), but I use the latter. I've
tried both but could never determine a difference between the two, so I'm
unsure why there's a recommendation to do one over the other.
namespace MyNamespace {
using System;
class MyClass {...}
}
vs.
using System;
namespace MyNamespace {
class MyClass {...}
}
are? There's a framework recommendation that the former be used (and some
ASP.Net templates create classes like this), but I use the latter. I've
tried both but could never determine a difference between the two, so I'm
unsure why there's a recommendation to do one over the other.