我们可以使用System.Reflection从.dll中检索结构名称吗? [英] Can we retrive the struct name's from .dll using System.Reflection?
本文介绍了我们可以使用System.Reflection从.dll中检索结构名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!我遇到了这个问题.就是Ccn,我们使用System.Reflection从.dll中找到结构的名称?
Hello everyone! I had encountered this problem. That is Ccn we find the struct''s name''s from .dll using System.Reflection?
推荐答案
是的,可以.
怎么样?
你去...
Yes, you can.
How?
Here you go...
// Load the dll
Assembly assembly = Assembly.LoadFrom("...name...");
// Get all types from the assembly
type[] allTypes = assembly.GetTypes()
完成此操作后,您可以轻松过滤和搜索所有类型以执行所需的操作.
Once you do that, you can easily filter and search all the types to do whatever you need to do.
这篇关于我们可以使用System.Reflection从.dll中检索结构名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文