The Common Type System (CTS)

The Common Type System (CTS) is an infrastructure supporting strong code and type verification. It also is the key to ensuring that managed code is self-describing.

The CTS is the foundation of cross-language programming. For example, an int in C# is the same as an int in Managed C++. The name doesn't need to be the same, as long as there is a 1-to-1 mapping between types, such as a C# float and a VB single. Regarding C# intrinsic types, unsigned integral types are not CLS-compliant, but all other C# intrinsic types are CLS-compliant.

Many of the typing principles in C# have been presented in earlier chapters. For example, you should already know the difference between value and reference types, which intrinsic types ...

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.