C # Bible: A ten-year collection of books read notes

Source: Internet
Author: User

1. Run-time error, use checked block statement for exception check and throw exception.

2. Value types use the thread stack to hold the data, the data size is about 1M, the reference type uses the managed heap to hold the data, and the space can be allocated indefinitely because there is a GC garbage collection mechanism, and note that both the struct type and the enumeration type are value types.

3. When using constants, the program does not actually need to allocate memory for constants and can extract the values of constants in the assembly metadata.

The 4.ReadOnly field indicates that only the value of the variable is allowed to be written once, and thereafter it cannot be read again.

5.

C # Bible: A ten-year collection of books read notes

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.