May 2010
Intermediate to advanced
1272 pages
61h 18m
English
The Common Language Specification also provides rules for interfaces. The first rule is that if you mark an interface as CLS-compliant, you cannot use CLS-incompliant types within signatures. The following interface is not correct because it is marked as CLSCompliant but uses a noncompliant type:

The second rule is that a CLS-compliant interface cannot define shared members. The last rule is that all members must be explicitly marked with the CLSCompliant attribute. The following is an example of CLS-compliant interface:
Read now
Unlock full access