Home »

What is Common Type System (CTS)?

Question ListCategory: .NETWhat is Common Type System (CTS)?
jeanderson295 author asked 8 years ago
1 Answers
shah_kajal184 author answered 8 years ago

CTS is the component of CLR through which .NET Framework provides support for multiple languages because it contains a type system that is common across all the languages. Two CTS- compliant languages do not require type conversion when calling the code written in one language from within the code written in another language. CTS provide a base set of data types for all the languages supported by.NET Framework. This means that the size of integer and long variables is same across all .NET– compliant programming languages. However, each language uses aliases for the base data types provided by CTS. For example, CTS uses the data type system. int32 to represent a 4 byte integer value; however, Visual Basic uses the alias integer for the same; whereas, C# uses the alias int. This is done for the sake of clarity and simplicity.

Please login or Register to Submit Answer