S.NoCTSCLS1Abbreviation:CTS stands for Common Type SystemAbbreviation:CLS stands for Common Language Specification 2Meaning:It describes how types are declared, used and managed in the runtime and facilitates cross-language integration, type safety, and high performance code execution.The types defined by the CTS are broadly classified into value types and reference types. Value types are those which themselves contain data/methods/resources represented by the type - like an integer variable is a value type. Reference types are those which refer to value types and a pointer or a reference is an example of such a type. All types derive from 'System.Object' base type.Meaning:It is a specification that defines the rules to support language integration in such a way that programs written in any language, yet can interoperate with one another, taking full advantage of inheritance, polymorphism, exceptions, and other features. These rules and the specification are documented in the ECMA proposed standard document. 3Power of CTS:CTS is a superset of the CLS,i.e.,all .NET languages will not support all the types in the CTS.Power of CLS:CLS is a subset of the CTS which all .NET languages are expected to support. 4Example:“Integer” datatype in VB and “int” datatype in C++ are not compatible, so the interfacing between them is very complicated. In order that two different languages can communicate, “Integer” in VB6 and “int” in C++ will convert to System.int32 which is datatype of CTS.(or)In c#, we will declare int i;In vb, we will declare dim i as integerBasically Microsoft will convert all this data types to the generic data types. So, if we write code in different languages that will convert into language independent code. This is called Common type system(CTS).Example:A class written in C# can inherit from a class written in VB.
Difference Between CTS and CLS
Difference between CTS and CLS