`
阿尔萨斯
  • 浏览: 4147329 次
社区版块
存档分类
最新评论

C# - C# coding rule : Using Directives Must Be Placed Within Namespace

 
阅读更多
Actually, there are subtle differences between placing using directives within a namespace element, rather than outside of the namespace, including:

1. Placing using-alias directives within the namespace eliminates compiler confusion between conflicting types.

2. When multiple namespaces are defined within a single file, placing using directives within the namespace elements scopes references and aliases.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics