June 11th Thursday (六月 十一日 木曜日)
2009-06-26 20:48
375 查看
Generally speaking, the using-declaration is safer to use because it shows exactly what names you are
making available. And if the name conflicts with a local name, the compiler lets you know. The using-directive
adds all names, even ones you might not need. If a local name conflicts, it overrides the namespace version,
and you won't be warned. Also, the open nature of namespaces means that the complete list of names in a namespace
might be spread over several locations, making it difficult to know exactly which names you are adding.
making available. And if the name conflicts with a local name, the compiler lets you know. The using-directive
adds all names, even ones you might not need. If a local name conflicts, it overrides the namespace version,
and you won't be warned. Also, the open nature of namespaces means that the complete list of names in a namespace
might be spread over several locations, making it difficult to know exactly which names you are adding.
相关文章推荐
- June 14th Thursday (六月 十四日 木曜日)
- June 28th Thursday (六月 二十八日 木曜日)
- June 25th Thursday (六月 二十五日 木曜日)
- October 11th Thursday (十月 十一日 木曜日)
- 2008 September 11th Thursday (九月 十一日 木曜日)
- June 7th Thursday (六月 七日 木曜日)
- June 4th Thursday (六月 四日 木曜日)
- June 11th Monday (六月 十一日 月曜日)
- May 11th Friday (五月 十一日 木曜日)
- June 21th Thursday (六月 二十一日 木曜日)
- June 18th Tuesday (六月 十八日 木曜日)
- June 19th Friday (六月 十九日 木曜日)
- Aprial 19th Thursday (四月 十九日 木曜日)
- May 24th Thursday (五月 二十四日 木曜日)
- June 12th Tuesday (六月 十二日 火曜日)
- June 25th Monday (六月 二十五日 月曜日)
- July 19th Thursday (七月 十九日 木曜日)
- September 13th Thursday (九月 十三日 木曜日)
- December 6th Thursday (十二月 六日 木曜日)
- 2008 March 6th Thursday (三月 六日 木曜日