我想知道是否可以定义自定义的程序集属性。现有的属性是按以下方式定义的:
[assembly: AssemblyTitle("MyApplication")]
[assembly: AssemblyDescription("This application is a sample application.")]
[assembly: AssemblyCopyright("Copyright © MyCompany 2009")]
有没有办法做到以下操作:
[assembly: MyCustomAssemblyAttribute("Hello World! This is a custom attribute.")]
AssemblyTitle
等都位于assemblyattributes.cs
中。这是源代码:https://referencesource.microsoft.com/#mscorlib/system/reflection/assemblyattributes.cs。 - mekb