c# - 如何确定命名空间位于哪个程序集中?

标签 c# mono assemblies namespaces monodevelop

MSDN 文档通常不指定命名空间所在的程序集,因此没有简单的方法来添加必要的程序集引用。

注意:我正在使用 MonoDevelop,所以右键单击,解决不是一个选项。

最佳答案

看看这个例子: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)

命名空间可以跨越多个程序集,因此您需要查找特定类所在的程序集。

关于c# - 如何确定命名空间位于哪个程序集中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2754220/

相关文章:

c# - 将 Assembly 保存为适合 Assembly.Load 的字节数组

c# - 如何注入(inject)与 Moq 一起使用的模拟程序集

c# - 单体机器人 : Intermittent failure when reading a large json string from web service

c# - 从 stdin 非阻塞读取一个字节

c# - 从 C# 可执行文件中扫描 DLL 依赖项

c# - 从基页包含外部 JS 文件

c# - 如何在 C# 中动态重命名 excel 工作表名称

c# - 如何在特定时间触发.NET Core 3.1 Hosted Service?

c# - 使用 `ElementName` 的 WPF 绑定(bind)失败,但在 Path 属性中指定 ElementName 有效吗?

sockets - 在尝试启动我的 fastcgi-mono-server 时,出现权限错误