Sunday, January 13, 2019

Using statements before or after Namespace in C#


Possible Duplicate:
Should Usings be inside or outside the namespace






So there are two approaches to where you have your using statements in regard to the namespace. You can either have them outside the namespace declaration or inside. What is the pro/con between the two approaches and which is generally preferred.




using System;

namespace MyNamespace
{
}


or:



namespace MyNamespace

{
using System;
}

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...