What is CTS in .NET?Sometimes you might want to establish communication between different .NET languages.
For example, you might have some part of your code in VB, some portion in C++ and you prefer to integrate the code from both the languages in your application. In such cases, you might face problems with respect to data types. If you have a Boolean variable for example, it will be represented as "Boolean" in VB.NET whereas it will be represented as "bool" in C#. Same data type is represented in two different languages in two different ways. All that you need is a common type system that has a single representation of data type irrespective of the language in which it is used. This unique representation is provided by CTS which stands for Common Type System. CTS represents Boolean variable as System.Boolean which will be acceptable across languages and there by it ensures successful integration.
|