Summary of main features of C # language

Source: Internet
Author: User

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

2. Its goal is to synthesize Visual Basic high-yielding and C + + low-efficiency features.

3. It is part of Microsoft Visual Studio7.0.

4.Visual Studio supports Vb,vc++,c++,vbscript,jscript. All these languages are available to microsft. NET platform access.

The 5..NET includes a common execution engine and a rich class library.

The 6.Microsofts JVM Eqiv is the common language (common language) runtime (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. Classes and data types for all. NET language is universal.

10. We are able to develop console applications in C #, Windows applications, Web applications.

11. In C #, Microsoft handles C + + issues such as memory management, pointers, and so on.

12. It supports garbage collection (useless memory recycling), automatic memory management, and many other features.


Key Features of C #


A. Simple

The pointer has disappeared in the 1.c#.

2. Unsafe operations, such as direct memory operations, are not allowed.

The "::" or "-S" operator in 3.c# is useless.

4. Because it is based on. NET platform, it inherits the features of automatic memory management and garbage collection.

5. The data range of the original data type is like Integer,floats.

6. Shaping values 0 and 1 no longer appear as Boolean values. The Boolean values in C # are purely true and false values and there are no more "=" operators and "= =" operator errors. " = = "is used for the comparison operation and" = "is assigned to the operation.


B. Modern

1.c# is built on current trends and is very powerful and simple for creating mutually compatible, scalable, and robust applications.

2.c# has built-in support to convert any component into a Web service, and any application running on any platform can use the service over the Internet.


C. Object-oriented

1.c# supports data encapsulation, inheritance, polymorphism, and object interface (the interface keyword in Java).

2. (int,float,double) is not an object in Java, but C # introduction and struct (structs) to make the original data type Object int i=1; String a=i Tostring ();//convert (OR) Boxing


D. Type safety

1. In C # We cannot make unsafe type conversions like converting a double to a Boolean.

2. Value types (constant types) are initialized to 0 values and reference types (objects and classes are automatically initialized to 0 values by the compiler.)

3. The array type subscript starts from zero and checks for cross-border.

4. Type overflow will be checked.


E. Mutual compatibility

1.c# provides original support for COM and Windows-based applications.

2. Allow restricted use of the original pointer.

3. Users no longer need to explicitly implement unkown and other COM interfaces, which have been built-in.

4.c# allows the user to manipulate the old code as an unsafe piece of code.

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


F. Scalability and upgradeability

1..NET introduces the concept of components, which have self-describing functions through their "manuals". The manual establishes the identity, version, language, and digital signature of the components. The components do not need to be registered anywhere.

2. To extend our program, we only need to delete old files and upgrade them with new files. You do not need to register a dynamic link library.

3. The process of upgrading the software components is only a fault detection task. Changes to the code can affect existing programs, and C # supports version modification in the language. Support for interface and method overloading enables complex procedural frameworks to evolve over time.


Conclusion

C # is a modern, type-safe, object-oriented programming language that enables programmers to be quick and easy for Microsoft. NET platform to develop a solution.

In addition to the Declaration, Running GuestArticles are original, reproduced please link to the form of the address of this article
Summary of main features of C # language

This address: http://www.paobuke.com/develop/c-develop/pbk23136.html






Related content The binary read-write file operation example implemented by C # A brief talk on the mutual invocation and WinForm of C # and JS (WebBrowser) C # Implement a form that is scaled down by the surrounding center C # Implement a method for finding a group of data
C # convert picture and byte streams to and from each other and display to the page C # implement 12306 automatic login method C # image Edge Detection (Roberts) method of C # generic dictionary usage examples

Summary of main features of C # language

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.