Linked Questions

23 votes
3 answers
23k views

Possible Duplicate: Should Usings be inside or outside the namespace sa1200 All using directives must be placed inside the namespace (StyleCop) Is this just for code readibility or is there any ...
Matt's user avatar
  • 27.1k
11 votes
3 answers
8k views

I was learning MVC WebAPI and I was following a tutorial and everything was going fine untill I saw the following: namespace HelloWebAPI.Controllers { using System; public class ...
Moon's user avatar
  • 20.1k
14 votes
2 answers
2k views

Possible Duplicate: Should Usings be inside or outside the namespace What is the difference between namespace x { using y; } and using y; namespace x { } ?
CodeMonkey1313's user avatar
7 votes
3 answers
3k views

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 ...
ConfusedNoob's user avatar
  • 10.3k
6 votes
1 answer
8k views

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 ...
Kenoyer130's user avatar
  • 7,428
7 votes
3 answers
2k views

Possible Duplicate: Should Usings be inside or outside the namespace I'm supporting some code that, unusually, has all its using statements contained within the namespace declaration. It makes me ...
Phil.Wheeler's user avatar
  • 16.9k
7 votes
3 answers
872 views

I've been using ReSharper for the past months and, advertising aside, I can't see myself coding without it. Since I love living on the bleeding "What the hell just went wrong" edge, I decided to try ...
hb.'s user avatar
  • 1,785
4 votes
5 answers
2k views

Possible Duplicate: Should Usings be inside or outside the namespace I am looking at a code base where the author (one I respect) consistently places using statements inside of the namespace, as ...
Berryl's user avatar
  • 12.9k
3 votes
2 answers
2k views

I don't know why Asp.net MVC developers put the using directives inside System.Web.Mvc namespace as follows. namespace System.Web.Mvc { using System; using System.Collections.ObjectModel; ...
LaTeX's user avatar
  • 1,431
5 votes
1 answer
7k views

I've noticed some C# code has the using statements within the namespace instead of at the top of the file. For example, instead of this: using System; namespace SomeClassNameSpace { public class ...
Michael Shnitzer's user avatar
1 vote
3 answers
248 views

Possible Duplicate: Should Usings be inside or outside the namespace .NET namespaces and using statements What is exact difference in writing USING directives before or after namespace ...
Posto's user avatar
  • 7,590
1 vote
0 answers
248 views

Possible Duplicate: Should Usings be inside or outside the namespace We all, I think, write usings and then namespace at the beggining of a class. I just saw a code that the namespace comes first. ...
Chen Kinnrot's user avatar
  • 21.1k
0 votes
1 answer
59 views

What's the advantage of doing this: namespace a { using System; class ClassA { } } over this using System; namespace a { class ClassA { } } is there any performance ...
Baahubali's user avatar
  • 4,840
0 votes
0 answers
118 views

Possible Duplicate: Should Usings be inside or outside the namespace I've noticed that sometimes lately when I've used Visual Studio's "Resolve" feature to add using statements to a class or unit, ...
B. Clay Shannon-B. Crow Raven's user avatar
1 vote
0 answers
87 views

Possible Duplicate: Should Usings be inside or outside the namespace Hi, friends, What's the difference between the following 2 code snippets? The using statement is located differently. ...
smwikipedia's user avatar

15 30 50 per page
1
2 3 4 5