The Common Type System and the Data Type that .Net Uses

Because the .NET framework supports multiple languages within the platform, it defines a Common Type System (CTS). The CTS defines the basic data types that IL understands. Each .NET compliant language should map its data type to these standard data types. This makes it possible for the 2 languages to communicate with each other by passing/ receiving parameters to and from each other. For example: CTS defines a type, Int32, as integral data type of 32 bits (4 byte) which is mapped by C# through int and through its Integer data type.

In this article we will see each implicit data type in C# has its corresponding .Net type. We will see in the following table that how the IL converts the data type of C# into .NET framework.


Author Bio : and

admin (158 Posts)

Leave a reply

Your email address will not be published.

Comment moderation is enabled. Your comment may take some time to appear.