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

来源:互联网 发布:palemoon mac os 编辑:程序博客网 时间:2024/06/10 12:57
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.

756 0