简体   繁体   English

如何确定名称空间所在的程序集?

[英]How do I determine what assembly a namespace is in?

The MSDN documentation doesn't generally specify the assembly a namespace is in, so there's no easy way to add the necessary assembly reference. MSDN文档通常不指定名称空间所在的程序集,因此没有简单的方法来添加必要的程序集引用。

NOTE: I am using MonoDevelop, so right-click, resolve is not an option. 注意:我正在使用MonoDevelop,因此右键单击“解决”不是一个选择。

Take a look at this example: http://msdn.microsoft.com/en-us/library/dd321424(VS.100).aspx 看下面的示例: http : //msdn.microsoft.com/zh-cn/library/dd321424(VS.100).aspx

Task(Of TResult) Class Task(TResult)类

Represents an asynchronous operation that can return a value. 表示可以返回值的异步操作。

Namespace: System.Threading.Tasks 命名空间:System.Threading.Tasks

Assembly: mscorlib (in mscorlib.dll) 程序集:mscorlib(在mscorlib.dll中)

Namespaces can cross multiple assemblies, so you need to look for the assembly a specific class is in. 命名空间可以跨多个程序集,因此您需要查找特定类所在的程序集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AllowXRequestsEveryXSecondsAttribute的程序集和名称空间是什么? - What is the assembly and namespace of AllowXRequestsEveryXSecondsAttribute? 我如何找到我需要引用哪个程序集才能使用某个命名空间? - How do I find which assembly I need to reference in order to use a certain namespace? 为什么我必须在assembly.GetType()的参数中指定命名空间? - Why do I have to specify the namespace in the parameter for assembly.GetType()? 如何确定某个方法在其自己的程序集之外是否可见? - How do I determine whether a method is visible outside its own assembly? DispatcherTimer需要哪个程序集? 命名空间不起作用 - Which assembly do I need for DispatcherTimer? namespace not working XmlDocument驻留在哪个程序集中,如何使用它? - What assembly does XmlDocument live in, and how do I use it? 如何获取程序集的命名空间? - How to get Namespace of an Assembly? 如何确定是什么在重置我的连接? - How do I determine what's resetting my connection? 什么是,如何通过绘制矩形确定这种奇怪异常的原因? - What is, and how do I determine the cause of this strange exception with drawing a Rectangle? 如何确定导致测试资源管理器崩溃的异常? - How do I determine what exception caused Test Explorer to crash?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM