// .net code
private type gettype(string classname)
{
// creates current domain.
appdomain currentdomain = appdomain.currentdomain;
// makes an array for the list of assemblies.
assembly[] assems = currentdomain.getassemblies();
type type = null;
for (int j = 0; j {
type[] types = assems[j].gettypes();
for (int k = 0; k {
if (types[k].name.equals(classname) || (types[k].fullname.equals(classname)))
{
type = types[k];
break;
}
}
if (type != null)
{
break;
}
}
return type;
}
0
0
相关文章
blazor 是什么 blazor和vue/react对比
.net core 和 .net framework 的区别
c# LOH 大对象堆和高并发性能的关系
c# LMAX Disruptor .NET port 和 Channel 的性能对比
c# Thread.ApartmentState (STA/MTA) 和并发的关系
相关标签:
本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门AI工具










