Thoughts on reading c#4.0

Source: Internet
Author: User

C # has been developed for more than 5 years, the language has a certain degree of understanding. I think the "C # 4.0 Plot" is a good book, and I've been sorting out some concepts recently. There is something in this book that is not normally thought of. So the record is convenient for future viewing. Set a goal for yourself within 72 hours to complete the summary;

CLR: Garbage collection, memory allocation, code execution and thread management and exception handling, code security validation

BCL: Common base classes, collection classes, threading and Synchronization classes, XML classes

CIL: Content in the assembly. The CSC command compiles.

JIT: Sends executable code in the assembly to the real-time compiler to become native code.

C # programs are made up of n type declarations. A type is a set of templates.

16 Basic types: 3+8,bool, char && string, object, dynamic; Types that can be created by the user themselves: arrays, classes, interfaces, delegates (reference types), structs, enumerations (value types), variables in the heap are typically initialized, arrays, and variables in classes.

Stacks store These types of data: the values of certain types of variables, the current execution environment of the program, the arguments passed to the method, the address of the stored-value type and the reference type

Heap storage: The actual content of the reference type.

Class Members: Data members (fields, constants), function members (methods, properties, constructors, destructors, operators, indexes, events); Only constants and indexes cannot be static.

does not account for memory: constants, properties,

function variables: ref, out, params, variable values can be specified in order, and variables can have default values

Compile error:

Console.WriteLine ("Hi {0},{2}");

Run Error:

1. Study the good places written by others and introduce them in your own code. such as writing a document comment

2. Study the strengths of others, such as winter plum work quickly

Thoughts on reading c#4.0

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.