CLSCompliantAttribute

suggest change

Syntax

  1. [assembly:CLSCompliant(true)]
  2. [CLSCompliant(true)]

Parameters

Remarks

The Common Language Specification (CLS) is a set of base rules to which any language targeting the CLI (a language that conforms to the Common Language Infrastructure) should conform in order to interoperate with other CLS-compliant languages.

List of CLI languages

When you distribute a library, mark the assembly CLS-compliant if callers may use other languages. The attribute does not make the code compliant by itself. It tells the compiler to check the public API against the CLS rules and report a warning when a rule is broken. Compliant public APIs can be consumed by any language that runs on the Common Language Runtime.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents