L Cross-language processing: Since any language source program that complies with the general language specification can be compiled into the same intermediate language code, components designed in different languages can be mutually common, and new classes of the language can be derived from classes defined in other languages. In other words, the CLR has an automatic memory management function. Unlike the C and C ++ languages, the instance created in the heap with a statement must use the statement to release the memory space occupied by the instance. When the life cycle of variable instances ends, the garbage collector is responsible for reclaiming the memory space occupied by unused instances. L Automatic memory management: The CLR has a built-in garbage collector. As long as the corresponding CLR is compiled for other operating systems, the intermediate language code can also run in other systems. Any language source program that abides by the general language specification can be compiled into the same intermediate language code, which is executed by the CLR. NET system includes the following languages: C #, C ++, VB, J #, and they all abide by the common language specification. This execution method makes the running speed slower, but brings some other benefits, mainly: The CLR of the C # language is similar to the virtual machine of the JAVA language. The CLR provides a runtime environment for the C # language intermediate language code to run. The executed machine code is executed by the CPU. When the program is running, the intermediate language code must be translated into the CPU by the JUST IN Time (JIT) in the Common Language Runtime (CLR). The intermediate language code is not machine code executable by the CPU. If readers have used C ++ and JAVA, learning C # language should be relatively easy.Ī source program written in C # language must compile the C # source program into an intermediate language (MicroSoft Intermediate Language, MSIL) code with a C # language compiler to form an exe or dll file extension. C # grammar is very similar to C ++ and JAVA grammar. It uses component programming and is as easy to use as VB. It abandons the complexity of C ++ and is easier to use and less error-prone. It simplifies the operations of the C ++ language in terms of classes, namespaces, method overloading, and exception handling. The C # language is a modern, object-oriented language. NET) framework is a new generation Web software development model proposed by Microsoft, and C # language is a new generation development tool in the. The Microsoft.NET (hereinafter referred to as. If you need to further learn the C # language, you need to carefully read the monograph about the C # language. Of course, it is impossible to fully grasp the C # language with only one chapter. I hope that readers with C language can basically master C # language, and on this basis, they can further learn to write window applications and Web applications in C # language. This chapter introduces the basic knowledge of C # language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |