您的位置:首页 > 其它

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: