简体   繁体   English

查找哪个.NET程序集定义类型

[英]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.

相关问题 "我可以使用 .NET 属性而不依赖于定义它的程序集吗?" - Can I use a .NET attribute without depending on the assembly that defines it? 仅传递定义其他泛型的一种泛型类型 - Passing only one generic type which defines the other generics 将.NET类库(主要定义CRUD操作)公开为服务 - Exposing a .NET class library (which primarily defines CRUD operations) as a service WinSCP .NET 程序集自定义列表,在 TransferMode == Automatic 时定义 ASCII 传输 - WinSCP .NET Assembly custom list that defines ASCII transfer when TransferMode == Automatic 引用 .NET 程序集中的解析类型 - Resolving type in referenced .NET assembly .net程序集实现int []。 字符串[]等 - which .net assembly implements int[]. string[] etc 确定哪个.net程序集加载了另一个 - Determine which .net assembly loaded another 哪个.NET程序集包含FormRegionMessageClass和FormRegionName的定义? - Which .NET assembly contains the definition for FormRegionMessageClass and FormRegionName? Json.NET如何覆盖通过属性定义自定义JsonConverter的类型的序列化? - Json.NET how to override serialization for a type that defines a custom JsonConverter via an attribute? 如何获取.Net中给定类型的程序集(System.Reflection.Assembly)? - How to get the assembly (System.Reflection.Assembly) for a given type in .Net?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM