Like many beginners, when I first came into contact with C #, I was confused. After learning for a long time, I was confused about some basic names. What is C #? What is. net? What is visual studio? What is the relationship between them? Let's start with these questions to explore C #.
I have found a God-class answer to the above questions. If we compare developing software to writing Chinese characters, visual studio is a pen ,. net is the paper, C # is the writing rules of Chinese characters, and so on, we can follow the C # rules, use vs in. net.
After understanding these questions, we can start with the basic knowledge of C #. Since it is a language or programming rule, so we can have some connection with the vb we have learned before. These two languages are bound to have similarities and differences. Starting with these similarities and differences, we can understand them more easily. Below is my summary of the similarities and differences between the two languages in terms of language basics.
Through comparison, it is found that they are a little different in the language environment, basic structure, and data types and operators. C # is also developed by Microsoft, but vb is an object-based development language, C # is a fully object-oriented development language. C # It also improves the data type, introduces the value and reference data type, and adds the namespace and Assembly content in the basic structure. Compared with the traditional program control structure, C # has not changed much. It continues to follow the three traditional control structures, including sequence, selection, and control, but the process control statements are not the same. In terms of operators, it has also made innovations, added overflow, compatibility judgment, and other keywords. The following is a graph of C # learning process:
The trigger in the database. When the program runs to a certain step, this event is triggered.
Exception Handling: similar to other object-oriented programming languages, when a program encounters exceptions (network problems, file loss, etc.), the program can handle the exceptions by itself.
Written here, even if the preliminary introduction of C # is completed, C # Will be used to write some programs, and the understanding of C # will be more profound.