鉴于此声明:这两个声明有什么区别?
using System;
using System.Collections;
using System.Collections.Generic;
namespace AProject.Helpers
{
public static class AClass
{
和本声明
namespace AProject.Helpers
{
using System;
using System.Collections;
using System.Collections.Generic;
public static class AClass
{
在那里它们之间任何的意义有什么区别?或者只是编码风格的差异?
我总是用来声明我的类像第一个,但最近注意到微软uses the second。
似乎是一个重复的问题。请参阅出色答卷 “[应Usings是命名空间内部或外部] [1]” [1]:http://stackoverflow.com/questions/125319/should-usings-be-inside-或在名称空间外 – tsemer 2012-08-03 06:53:12