C # indexing of basic knowledge articles

Source: Internet
Author: User

C # The Basic Knowledge series has finally come to an end. This series mainly introduces some important features from C #1.0 to C #4.0, at the beginning, I wrote this topic mainly because I thought that after having mastered the basic knowledge of C #, it was almost the same for any other language, which could improve my friends' understanding of other languages, and allows you to master it more quickly. net's new features, and I believe this series is also very helpful for finding a job, because many companies are very concerned about the basics of interviews, whether you have a comprehensive understanding of C #, so many companies will ask some questions about the basic concept of C # during interviews. For example, if you have frequent interviews, you will ask: how do you understand delegation, how to Understand anonymous functions.

However, this series does not introduce the com interoperability content and. net 4.5 has some new features, so we will add these two aspects later. Because this series has been held for too long (about three months ), so we will come to an end first, which will be introduced later. net interoperability series. The following is the seriesArticleCreate an index for your favorites and search.

C # basic knowledge index series

C #1.0

1.In-depth analysis of delegation-Why to introduce delegation in C #

2.Delegation Essence

3.How to wrap multiple methods with delegation-delegation chain

4.Event exposure

5. What happens behind the click event when a button is clicked

C #2.0

6.Generic basics-Why to introduce generic

7. Extensive understanding (1)

8.Extensive understanding (2)

9.Deep understanding of generic Variability

10.Empty type for comprehensive resolution

11.Anonymous method resolution

12.Iterator

C #3.0

13.Fully parses object set initiators, anonymous types, and implicit types

14.In-depth understanding of lambda expressions

15.Comprehensive Analysis of extension methods

16.Introduction to LINQ

C #4.0

17.Deep understanding of dynamic types

C #5.0

18. C #5.0 new features -- async and await make asynchronous programming easier

 

From all the features of C #, we can see that every new feature proposed in C # is based on the original feature and is an improvement to the original feature, so many improvements are made to help developers better use C # To writeProgram, Is to let us write lessCodeTo implement our program and hand over some additional work to the compiler to help us, that is, many people say that Microsoft is very fond of the meaning of syntactic sugar (syntactic sugar allows the compiler to help us with some additional things and reduce the things that developers consider, enables developers to focus more on the business logic of the system .), We can see this from the features proposed in C #3 (referring to playing syntactic sugar). Almost all of the features in C #3 are syntactic sugar provided by C, at the CLR level (New il commands are added), C #3 does not update anything. The dynamic types proposed in C #4 are built on the Expression Tree, including LINQ is also based on the Expression Tree, so each feature is a progressive relationship. I believe that the new features proposed later in C # will make it easier for us to develop programs. I feel that a unified idea of all languages is to write less code, but more things can be done. But we can't just stop and know how to use it. We should also study the story behind it and know how new features are implemented and how they work. To put it in one sentence, we need to know why, and to learn knowledge, we should learn with a thorough understanding,I believe that such a learning method can also make everyone feel uneasy, and the program written will be more confident.

 

 

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.