O'Reilly logo

Pro C# 2010 and the .NET 4 Platform, Fifth Edition by Andrew Troelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

15.9. Assembly-Level (and Module-Level) Attributes

It is also possible to apply attributes on all types within a given module (for a multi-file assembly; see Chapter 14) or all modules within a given assembly using the [module:] and [assembly:] tags, respectively. For example, assume you wish to ensure that every public member of every public type defined within your assembly is CLS compliant.

NOTE

Chapter 1 mentioned the role of CLS compliant assemblies. Recall that a CLS compliant assembly can be used by all .NET programming languages out-of-the-box. If you create public members of public types which expose non-CLS compliant programming constructs (such as unsigned data or pointer parameters), other .NET languages may not be able to use your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required