【发布时间】:2019-11-09 01:14:28
【问题描述】:
这段代码:
Type.GetType("namespace.a.b.ClassName")
返回null。
我在使用中:
using namespace.a.b;
更新:
类型存在,在不同的类库中,需要通过字符串名获取。
【问题讨论】:
-
查看stackoverflow.com/questions/441680/… 了解如何获取程序集限定名称。
标签: c# reflection