[英]Finding which .NET assembly defines a type
If I recall correctly, in the good old C++ days MSDN used to be helpful in that it would show you not only the header file you needed to include to access a particular function, but also the DLL you needed to link to where that functionality was implemented. 如果我没记错的话,在过去的C ++年代,MSDN曾经对您有所帮助,因为它不仅会向您显示访问特定功能所需的头文件,而且还会显示链接至该功能所在位置的DLL。已实施。 But these days, while MSDN tells you the namespace in which an object is defined, it doesn't tell you what reference you need to add to get at that object.
但是这些天来,虽然MSDN告诉您定义对象的名称空间,但它并没有告诉您要添加到该对象需要添加什么引用。 Isn't or shouldn't there be a simple way to find all the .NET objects referenced in various answers posted about the web, mostly here on SO?
是否存在找到关于Web的各种答案中引用的所有.NET对象的简便方法? How do you find which assembly contains an object?
您如何找到哪个装配包含对象? (I happen to be looking for
System.ComponentModel.ExpandableObjectConverter
at the moment.) (此刻我恰好在寻找
System.ComponentModel.ExpandableObjectConverter
。)
The information is visible on the documentation page for system.componentmodel.expandableobjectconverter . 该信息在system.componentmodel.expandableobjectconverter的文档页面上可见。
Just below the inheritance hierarchy, near the top of the page, you can see this: 在继承层次结构的下方,靠近页面顶部,您可以看到以下内容:
Namespace: System.ComponentModel
命名空间: System.ComponentModel
Assembly: System (in System.dll)程序集:系统(在System.dll中)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.