Introduction of the First C #: VC Net,java Killer?
C # is developed on the basis of c,c++, it is a programming language with network style and object-oriented Cross-language platform. C # compiler output code, which can be called ' Controlled code ' (MANAGED), the controlled code does not run directly on the target machine, it forms a file that contains a language different from the traditional computer language: intermediate language (intermediate LANGUAGE). At the same time, the C # compiler directly inserts the corresponding change attribute (METADATA) in front of each data type of the file to form a file that can be ported to execution. The common Language environment (COMMON LANGUAGE RUNTIME), then compiles the intermediate language IL code, resulting in local binary code that can be executed on the target machine.
C # has no features of C + +: No macros, templates, multiple inheritance, pointers, and many overloaded operators, of course, there are no global functions, global variables, constants. Everything must be placed in a class. You see, these are actually exactly the same as Java!
Of course there are different places: the entire C # class model is built in. NET Virtual objects system (Virtual object systems). The object model is part of the infrastructure (infrastructure). C # is CLS-compliant, based on good compatibility: access to old COM component objects, OLE Automation, and local APIs (usually in C-format DLLs). When developers need to use pointers, they can be used using unsafe code and not running in the default security mode. In this mode, you have to manage your own memory to ensure the type of security.
Understand the general principles of C #, we can see that it can achieve a variety of computer language integration, network applications, and ultimately the formation of Microsoft. NET architecture. At the same time, we will take our software development into a modular world.
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