CTS in the. NET FrameWork

Source: Internet
Author: User

Cts:common type System.

1. Not only can you compile C # into. Net IL, it also supports languages such as Basic, Python, Ruby, and even Java. Data type definitions are not the same in different languages. The common data types (Cts,common type System) are defined in net: String, Int16, Int32, Int64, Boolean, Double. By going to the definition you can see that these are classes (structs).

2. Int64→long, Int32→int, Int16→short, string→string, Boolean→bool.

Each language defines its own type. NET provides a common type through the CTS, and then the translation generates the corresponding. NET type.

The 3.c# language specification defines primitive types such as String, int, long, bool, double, and the compiler translates these types into classes in the CTS. Anti-compilation See IL can see.

4.string is a class in C #, and string is a class of the. NET Framework CTS

C # string mapped to a string of the. NET Framework

If a string is used, the compiler compiles it into a string, so the compiler can do a little bit less work if you use string directly

If you use C #, it is recommended that you use string to compare to specifications.

Reference page:

Http://www.yuanjiaocheng.net/mvc/layout-view-in-asp.net-mvc.html

Http://www.yuanjiaocheng.net/Linq/linq-method-syntax.html

Http://www.yuanjiaocheng.net/webapi/mvc-consume-webapi-put.html

Http://www.yuanjiaocheng.net/mvc/create-first-mvc.html

Http://www.yuanjiaocheng.net/CSharp/Csharp-while-loop.html

Http://www.yuanjiaocheng.net/mvc/mvc-action-method.html

Http://www.yuanjiaocheng.net/CSharp/csharp-var.html

Http://www.yuanjiaocheng.net/Hibernate/first.html

Http://www.yuanjiaocheng.net/CSharp/Csharp-jagged-array.html

Http://www.yuanjiaocheng.net/CSharp/Csharp-stringbuilder.html

Http://www.yuanjiaocheng.net/Linq/linq-api.html

CTS in the. NET FrameWork

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.