Friday, 18 March 2016

Where to put using statements in a C# .cs file




DUPE: Should 'using' statements be inside or outside the namespace?




If I add a new class using Visual Studio to the project, It adds all the using statements before namespace but for the same project, FxCop says that put the name spaces inside namespace. Which is a better style of coding?


Answer



See Should 'using' statements be inside or outside the namespace?


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...