C # and its characteristics

xiaoxiao2021-03-06  66

Www.chinacs.net 2001-8-28 Chinese C # Technology Station

1.C # is a kind of inherited, simple, modern, object-oriented language. 2. Its goal is to integrate Visual Basic high-yield and C underlying efficient characteristics. 3. It is Microsoft Visual Studio7 Part of the .0.4.visual Studio supports VB, VC , C , VBScript, JScript. All of these languages ​​provide access to MicroSFT .NET platforms. 5..net includes a common exec engine and a rich class library. 6. Microsofts JVM Eqiv is Common Language Running (CLR) .7.CLR Support is not a language, such as C #, VB.NET, JScript, ASP.NET, C . 8. Source Code ---> Intermediate language Code (IL) -> (JIT Compiler) Machine Code .9. Class and Data Types are common to all .NET languages. 10. We can use C # Develop console applications, Windows applications, web applications .11. Microsoft in C # processes C issues, such as memory management, pointers, etc. 12. It supports garbage collection (useless memory recycling), memory automatic management and many other features.

Main features of C #

A. Simple 1.c # Needle The pointer has disappeared. 2. Insensitive operation, in order to say that direct memory operation is not allowed. 3. C # in "::" or "->" operator is useless. 4. Because it is based on the .NET platform, it inherits the feature of automatic memory management and garbage collection. 5. Raw data type variable data range icon icon in Integer, Floats, etc. 6. Plastic value 0 and 1 no longer appear as a Boolean value The boolean value in .C # is pure True and false values ​​and there is no more "=" operator and "==" operator error. "==" is used to perform comparison operations and "=" is used to assign operating.

B. Modern 1.c # is built on the current trend, which is very powerful and simple for creating each other, scalable, and robust app. 2. C # has built-in support to convert any components into A web service, any application running on any platform can use this service via the Internet.

C. Object-oriented 1.c # support data package, inherit, polymorphism, and object interface (ie the interface keyword in Java) .2. (Int, float, double) is not an object in Java, but C # introduction and structure Structs to make the original data type into object int i = 1; string a = i toString (); // conversion (or) boxing

D. Type Safety 1. In C # We cannot communicate unsafe type conversion icons to convert Double to boolean.2. Value type (constant type) is initialized to zero value and reference type (object and class are automatically initialized by the compiler Zero value .3. Array type subscript is started from zero and performs offshore check. 4. Type overflow will be checked.

E. Mutual compatibility 1.C # Provides original support for COM and Windows-based applications. 2. Allows the use of restrictions on the original pointer. 3. Users no longer need explicit implementations Unkown and other COM interfaces, These features have been built .4.C # Allows users to operate the pointer as an unsafe code segment to operate the old code. 5. VB.NET and other intermediate code languages ​​can be used directly in C #.

F. Scalability and Upgradeability 1..net introduced the concept of components, which have self-description through its "Manual". The manual establishes the identity, version, language and digital signature of the component. Parts No need to register anywhere. 2. To extend our program, we only need to delete old files and use new files to upgrade them. No need to register the dynamic link library .3. The process of upgrading software components is just an error detection task The modification of the code can affect existing programs, and C # supports version modifications in the language. Support for interface and method overload makes complex program frames over time and evolve.

Conclusion C # is a modern, type safe, object-oriented programming language that makes programmers to develop solutions for Microsoft .NET platforms quickly and easily.

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

New Post(0)