Jon Jagger
jon@jaggersoft.com
Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specificationpreviousnextprevious at this levelnext at this level 16 Namespacesprevious at this levelnext at this level 16.3 Using directives Paragraph 11 Using-directives facilitate the use of namespaces and types defined in other namespaces. 2 Using-directives impact the name resolution process of namespace-or-type-names (§10.8) and simple-names (§14.5.2), but unlike declarations, using-directives do not contribute new members to the underlying declaration spaces of the compilation units or namespaces within which they are used. using-directives : using-directive using-directives using-directive using-directive : using-alias-directive using-namespace-directive Paragraph 21 A using-alias-directive (§16.3.1) introduces an alias for a namespace or type. Paragraph 31 A using-namespace-directive (§16.3.2) imports the type members of a namespace. Paragraph 41 The scope of a using-directive extends over the namespace-member-declarations of its immediately containing compilation unit or namespace body. 2 The scope of a using-directive specifically does not include its peer using-directives. 3 Thus, peer using-directives do not affect each other, and the order in which they are written is insignificant.
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS