Most attributes are attached to specific language elements, such as classes or methods. However, some attributes are global — they apply to an entire assembly or module. Global attributes can appear in multiple source files in a single compilation.
Assembly-level attributes are specified as follows:
[assembly::attribute]
Module-level attributes are specified as follows:
[module::attribute]
The following NGWS attributes let you modify the information in an assembly:
If you do not want an assembly created for a compilation, use the compiler option /com+:noassembly.
To specify multiple assembly or module-level attributes in a single attribute block, each attribute must be separated by a comma. For instance, the following sample specifies two assembly-level attributes:
[assembly::System::CLSCompliant(true), assembly::System::Expando];
[assembly::System::CLSCompliant(true)];