使用名称空间 [英] using namespaces

查看:79
本文介绍了使用名称空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个网站列出所有正在使用的名称空间以及每个名称空间的作用?

Is there a website that lists all the using namespaces and what each one does?

推荐答案

可能不是您所要求的方式.

Probably not in the way you are asking.

通常的回答是,这样的网站是不可能的,因为它需要知道曾经编写的.NET代码的每一部分.

As a general answer, such a website is not possible since it would require knowing every bit of .NET code ever written.

如果您想限制自己使用.NET的官方组件,则MSDN会很好地记录所有内容.  不过,作为一般规则,MSDN不会记录名称空间. MSDN记录了类并列出了该类所属的名称空间.例如, 上的MSDN文档 Console 类详细记录了该类,并提到该类属于System命名空间. MSDN包含指向系统名称空间的链接,但这只是该名称空间的一部分项目列表,没有有关该名称空间的文档 做.  (这是有道理的,因为类可以完成工作,所以名称空间除了提供组织类的方法外,实际上不做任何事情.)

If you want to limit yourself to official parts of .NET, then MSDN documents all of that nicely.  As a general rule though, MSDN doesn't document namespaces.  MSDN documents classes and lists what namespace that class belongs to.  For example, the MSDN documentation on the Console class documents the class in detail and mentions that the class belongs to the System namespace.  MSDN includes a link to the System namespace, but it is just a list of items that are part of that namespace, no documentation on what the namespace does.  (This makes sense, since classes do stuff, namespaces don't really do anything besides provide a way to organize classes).


这篇关于使用名称空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆