C # difficulty is broken one by one (6): C # Data types and. NET Framework data types

Source: Internet
Author: User
Among them is the Java programming Tutorial is a Chinese-American work, and Nicholas C.zakes's "JavaScript advanced Programming", there is this illustrator C # 2008, translated into "illustration c#2008", There are actually not many illustrations. This is my first time to read the original book completely, feeling good and deep. One is my English incredibly still can, want to test six grade still worse than 20 points, –!! Second, the Foreigner writes the book really is attentively writes, treats own book as treats own child.

This is gossip, and I've always wanted to know how the. NET Framework data storage type is stored in memory, and this book is understood in a very straightforward way.

The data types in C # can be categorized as simple types and multivalued item types; For example, Short,int,long is called a simple type, they can only store one simple data. A multivalued item type, such as an array, is a combination of simple type data that can be used to iterate through each simple data using index indexes.

Members include data members and function members. Data members are used to store data, and function members are used to execute code.

There are 15 predefined types in C #, of which 13 simple types, two non-simple types (non-simple types), 13 simple types that include 11 numeric types, one Unicode character type (that is, char), A Boolean type (that is, bool) that includes variable-length integers, floating-point types (float and double), and high-precision decimal types. Two non-simple types include string, object. Structure such as (can click to see larger picture):

It is worth noting that the data types in C # are lowercase, the Int32, the string is the. NET Framework data type, and the. NET Framework is a superset of C #. See the corresponding relationship between the data types (click to see larger image)

The above is the C # difficulty one by one (6): C # data type and the content of the. NET Framework data type, more about topic.alibabacloud.com (www.php.cn)!

  • 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.