C # difficulties (6): C # data types and. NET Framework Data Types

Source: Internet
Author: User

Java Program Design tutorial is a Chinese-American work, and there is Nicholas C. zakes's JavaScript advanced programming, also has the illustrator C #2008, which is translated into "illustration C #2008". In fact, there are not many illustrations. This is my first complete reading of the original version. First, I can still use English. I want to score more than 20 points after I take the cet6 test ,-!! Second, foreigners write books with their heart. treating their books is just like treating their children.

The above is a gossip, and I have been wondering how to store. NET Framework data in memory. This book is easy to understand.

In C #, data types can be classified into simple type and multi-value item type. For example, short, Int, and long are simple types. They can only store one simple data. Multi-value type, such as array, is a combination of simple data types. You can use index indexes to traverse each simple data.

Members include data members and function members ). Data members are used to store data, and function members are used to executeCode.

C # contains 15 predefined types, 13 of which are simple types and 2 are non-simple types ); among the 13 simple types, there are 11 numeric types, a Unicode character type (I .e. char), and a boolean type (I .e. bool ); the numeric types include variable-length integer, floating point type (float and double), and high-precision decimal type. The two non-simple types include string and object. The structure is shown in figure (you can click to view the large image ):


For detailed data types, see: http://msdn.microsoft.com/zh-cn/library/exx3b86w%28VS.80%29.aspx

Note that the data types in C # are in lower case. int32 and string are commonly used as the. NET Framework data types, and. NET Framework is a superset of C. For the relationship between the two data types, see the figure below)


In general, 32767 is enough for our use, so it takes a lot of time to use convert. toint16.

Related Article

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.