Type[] types = AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(IConfigConvert))))
.ToArray();
Assembly assembly = Assembly.GetExecutingAssembly(); // 获取当前程序集
foreach (Type type in types)
{
string name = type.FullName;
IConfigConvert iconvert = (IConfigConvert)assembly.CreateInstance(name);
}
Type[] types = AppDomain.CurrentDomain.GetAssembl