110,525
社区成员
发帖
与我相关
我的任务
分享
Assembly ass = Assembly.LoadFrom(file); //加载程序集
Type descriptionType = typeof(AssemblyDescriptionAttribute);
Attribute attr= AssemblyDescriptionAttribute.GetCustomAttribute(ass, descriptionType); //报错!! 查询AssemblyDescriptionAttribute属性的时候出现异常
object[] des = ass.GetCustomAttributes(descriptionType, true);
foreach (object desc in des)
{
//DoWork here:
....
}