4.7.1 Qualified Name Resolution
Visual Studio .NET 2003
Given a qualified namespace or type name of the form
R is the rightmost identifier in the qualified name, the following steps describe how to determine to which namespace or type the qualified name refers:
N, which may be either a qualified or unqualified name.
- If resolution of
Nfails or does not resolve to a namespace or type, a compile-time error occurs. If
Rmatches the name of a namespace or type in
N, then the qualified name refers to that namespace or type.
Ncontains one or more standard modules, and
Rmatches the name of a type in exactly one standard module, then the qualified name refers to that type. If
Rmatches the name of types in more than one standard module, a compile-time error occurs.
- Otherwise, a compile-time error occurs.
Note An implication of this resolution process is that type members do not shadow namespaces or types when resolving namespace or type names.