这是我的代码:
using System.Windows.Forms;
Type type = typeof(Form);
Type type2 = Type.GetType(type.FullName);
Run Code Online (Sandbox Code Playgroud)
结果:type2 == null
我做错了什么?
也许你可以试试:
Type type2 = Type.GetType(type.AssemblyQualifiedName);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
174 次 |
| 最近记录: |