C # and its characteristics

xiaoxiao2021-03-05  26

1.C # is a kind of inherited from C and Java, simple, modern, object-oriented language.

2. Its goal is to integrate Visual Basic high-yield and C underlying efficient characteristics.

3. It is part of Microsoft Visual Studio7.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 Execution engine and a rich class library.

6. Microsofts JVM Eqiv is a Common Language (General Language) Runner (CLR).

7. CLR supports more than one language, such as C #, VB.NET, JScript, ASP.NET, C .

8. Source code ---> Intermediate Language Code (IL) ---> (JIT Compiler) Machine Code.

9. Category and data types are common to all .NET languages.

10. We can use C # development 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 recovery), memory automatic management and many other features.

Main features of C #

A. Simple

1. C # The pointer has disappeared.

2. Insensitive operations, all said 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 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. "==" Used to perform comparison operations and "=" is used to assign value.

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, and any application running on any platform can use this service through the Internet.

C. Object-oriented

1.C # supports data packages, inherits, polymorphisms, and object interfaces (that is, Interface keywords in Java).

2. (int, float, double) is not an object in Java, but C # introduction and structures (STRUCTS) to make the original data type into object INT i = 1; string a = i toString (); // conversion ( Or) boxing

D. Type security

1. In C # we can't communicate the Double to Boolean in C #.

2. Value type (constant type) is initialized to zero values ​​and reference types (objects and classes are automatically initialized to zero values.

3. The array type subscript is started from zero and performs offshore inspection.

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 the original pointer to be used.

3. Users no longer need explicit implementations Unkown and other COM interfaces, which have been built.

4.C # Allows the user to operate the old code as an unsafe code segment.

5. The components in VB.NET and other intermediate code languages ​​can be used directly in C #.

F. Scalability and upgradeability

1..net introduced the concept of components, they have their own functions through its "Manual". The manual establishes the identity, version, language and digital signature of the component. Parts do not need to register anywhere.

2. To extend our program, we only need to delete old files and use new files to upgrade them. No registration dynamic link library.

3. The process of upgrading the software component is just an error detection task. For the modification of the code, it can affect the existing programs, and C # supports version modifications in the language. Support for the interface and method makes complex program frames over time And evolution.

in conclusion

C # is a modern, type safe, object-oriented programming language that makes the programmer quickly and easily develop solutions for Microsoft .NET platform.

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

New Post(0)