Assembly ae = Assembly.GetExecutingAssembly();
object[] obj = ae.GetCustomAttributes(typeof (AssemblyTitleAttribute), false);
string title = ((AssemblyTitleAttribute)obj[0]).Title;
读取项目AssemblyInfo.cs属性值
最新推荐文章于 2022-07-28 15:58:32 发布
Assembly ae = Assembly.GetExecutingAssembly();
object[] obj = ae.GetCustomAttributes(typeof (AssemblyTitleAttribute), false);
string title = ((AssemblyTitleAttribute)obj[0]).Title;