| Start | ||||
|---|---|---|---|---|
Access Modifier to which CLS rules apply The rules for CLS compliance apply only to a public/protected components. |
||||
Violation of CLS rule: Unsigned types / sbyte |
||||
Violation of CLS rule: Same naming Visual Basic is not case sensitive |
||||
Violation of CLS rule: Identifier _ You can not start variable with _ |
||||
Violation of CLS rule: Inherit from non CLSComplaint class Syntax
Parameters
RemarksThe Common Language Specification (CLS) is a set of base rules to which any language targeting the CLI(language which confirms the Common Language Infrastructure specifications) should confirm in order to interoperate with other CLS-compliant languages. List of CLI languages (opens new window) You should mark your assembly as CLSCompliant in most cases when you are distributing libraries. This attribute will guarantee you that your code will be usable by all CLS-compliant languages. This means that your code can be consumed by any language that can be compiled and run on CLR(Common Language Runtime (opens new window)) When your assembly is marked with |
Read Article
https://develop.horje.com/learn/1434/reference