The Common Language Specification (CLS)

At this point a lot of people are thinking, “Get real! All languages are not the same.” I'd have to agree because C# is definitely the best of them all (as the author dodges a tomato for utterly terrible comedy). The reality is that there are several differences between languages that would make it impossible for modules written with language-specific extensions to communicate.

This is where the Common Language Specification (CLS) comes in. There must be a set of rules for languages to follow to be cross-language compatible. The CLS is the intersection of all .NET languages and enables code to be shared equally among all CLS-compliant languages.

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.