How do I determine what assembly a namespace is in?

五迷三道 提交于 2019-12-11 02:46:36

问题


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.

NOTE: I am using MonoDevelop, so right-click, resolve is not an option.


回答1:


Take a look at this example: http://msdn.microsoft.com/en-us/library/dd321424(VS.100).aspx

Task(Of TResult) Class

Represents an asynchronous operation that can return a value.

Namespace: System.Threading.Tasks

Assembly: mscorlib (in mscorlib.dll)

Namespaces can cross multiple assemblies, so you need to look for the assembly a specific class is in.



来源:https://stackoverflow.com/questions/2754220/how-do-i-determine-what-assembly-a-namespace-is-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!