protected void Page_Load(object sender, EventArgs e)
{
object[] productAttribute = Assembly.GetExecutingAssembly().GetCustomAttributes(false);
//string source = productAttribute.Product;
foreach (object ob in productAttribute)
{
System.Attribute aaa = ob as System.Attribute;
string fullname = aaa.GetType().FullName;
if (fullname.Contains("Company"))
{
AssemblyCompanyAttribute company = (AssemblyCompanyAttribute)aaa;
string companyname = company.Company;
}
}
}
还有很多其他的信息也可以一并弄出来了。一共有十三个吧 具体用可以自己找