The Common Type System (CTS) standardizes the data types of all programming languages using .NET under the umbrella of .NET to a common data type for easy and smooth communication among these .NET languages.
How CTS converts the data type to a common data type
To implement or see how CTS is converting the data type to a common data type, for example, when we declare an int type data type in C# and VB.Net then they are converted to int32. In other words, now both will have a common data type that provides flexible communication between these two languages.
Let's take a live example using a Double data type and we will see how .NET helps to make the data types of C# and VB.NET common to each other for easy communication.
Live Example
We will create a new Visual Basic (Console Application) project.
Now we will add one more project of Visual C# (Console Application).
Now to see how CTS is helping with the data types of the programming languages and providing a common environment we will declare a Double data type (*note you can user other variables for your reference) variable in both the C# program.cs and Module1.vb.
C# Data type Declaration
Visual Basic Data type Declaration
Now start debugging both of these Console Applications. Once you are done with Debugging the application, we will now use an important tool provided with Visual Studio Called “ILDASM”.
You can learn about “ILDASM” by Control + Click on the “ILDASM” link and gain information on how ILDASM is helpful. So returning back to CTS, now open “ILDASM” from the Visual Studio x64 Command Prompt.