C # Introduction: VC's NET, JAVA Killer?

zhaozj2021-02-11  179

First C # Introduction: VC's NET, JAVA's Killer? C # is developed on the basis of C, C , is a programming language with a network style, object-oriented cross-language platform. The code of the C # compiler can be called the 'controlled code' (Managed code), and the controlled code cannot be run directly on the target machine, which forms a file that contains different languages ​​with traditional computer languages: Intermediate Language. At the same time, the C # compiler is directly inserted directly into the respective data types of the file, which represents its corresponding change attribute (Metadata), forming a file that can be transplanted. Communication Language Runtime, compile the intermediate language IL code, eventually generate local binary code that can be performed on the target machine. C # has some features of C : there is no macro, template, multiple inheritance, pointer and many overloaded operators, of course, there is no global function, global variable, constant. Everything has to be placed in a class. You see, these is actually exactly the same as Java! Of course, there are still a little different: the entire C # class model is based on the .NET virtual object system (Virtual Object System). The object model is part of the infrastructure. C # complies with CLS, on this, with good compatibility: you can access old COM component objects, OLE automation, and local API (which usually C format DLL). When developers need to use a pointer, they can be used by non-secure code, and they are not running in the default security mode. In this mode, you have to manage your memory and ensure the type of type. Understand the general principle of C #, we can see that it can achieve integration of various computer languages, online applications, thus finalizing Microsoft's .NET architecture. At the same time, we develop our software into components.

转载请注明原文地址:https://www.9cbs.com/read-5641.html

New Post(0)