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