mskeel
Well-known member
What is the difference between putting your using statements outside vs inside of a namespace? I guess the issue is this, when a class is created by visual studio it looks similiar to this:
Looking through example code, though, shows the using statements on the inside of the namespace. What is the difference? Does the placement of the using statement scope the linking similiarly to C++ or does it not really matter? Advantages or disadvantages to either placement? What is the difference?
C#:
using System; //using system on the outside of the namespace
namespace super
{
//examples always seem to put their using statements here...
/// <summary>
/// put summary here
/// </summary>
public class duper
{
public duper()
{
// TODO: put initialize code here
}
}
}